SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,159
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Post my div keeps drop down

    Hi, Can you help me please,i have problem on my div it will always drop down,here is the scenario....

    first,after i filled all the required fields by clicking the button there will be div will go down something like it will animate...when i tried to press the esc-key all fields will in the form will be clear out ,and the div will go up,. means to say the div will be invisible in the screen....after that when i click back the button..it should alert message saying that "empty fields..etc" something like that...it will alert but the problem is that the div will go down or will animate down ,this div should not be going down or it will not animate first.i tried also in other buttons but still the div will animate down.I don't know why..should i use the preventDefault() inorder not to fire the event.?

    Thank you in advance.

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2011
    Location
    Kolding, Denmark
    Posts
    108
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    No code?


Bookmarks

Posting Permissions

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