SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drop down menus and select

    Hi I wonder if you can help. I have a javascript page where the user can select from a number of drop down menus and choose a value. When they do this a total figure is calculated. The change event handler is used.

    Code:
     $("select#spend1").change(function() {      
    	 // functions to sum totals 
    
    
     });
    However when the user clicks the drop down and mouses over a value and then mouses out without clicking - a value is selected but the change event handler is not triggered (and required sum functions). Any idea how to make sure the change handler is triggered?

    Steven

  2. #2
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi dont worry i think i found the answer

    .bind() – jQuery API


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
  •