www.webdeveloper.com
Results 1 to 2 of 2

Thread: Doesn't Reset !

  1. #1
    Join Date
    Mar 2009
    Posts
    3

    Doesn't Reset !

    My attachment is a timetable where names can be dropped to any of the white cells.

    It has got 3 buttons :

    1) NEXT - Takes user to next week

    2) CURRENT - Takes user to present week

    3) RESET ALL FIELDS - All the white cells should be emptied of the dragged names.

    I have made following function for RESET ALL FIELDS ( the last function in script header)

    Code:
    function resetPage(){
       document.getElementById("userForm").reset();
    }
    It is called in the last part of the body.

    The problem is that RESET ALL FIELDS doesn't work.

    My 2nd problem is that the 3 buttons don't come in one single line.
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The data is in list items, not a form element.
    Remove all <li>'s from all <ul>'s
    ID's should be unique!

    Remove the form element from the last button.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles