Results 1 to 2 of 2
  1. #1
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Posts
    364
    Rep Power
    5

    Default multiple onChange functions

    i have a js function being called from my onChange attribute:

    onchange="myFunction(this.form)"

    How can I add a 2nd js function that I want to run onChange?
    Last edited by sehudson; 03-14-2011 at 03:58 PM.

  2. #2
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Smile

    put all the method calls in the same onChange attribute and separate each call with a semicolon

    e.g.
    Java Code:
    onchange="myFunction(this.form);function2();function3()"

Similar Threads

  1. dropdown onchange
    By srivempala in forum New To Java
    Replies: 0
    Last Post: 01-23-2011, 12:54 PM
  2. onchange invoke java object method and submit form
    By marckamga in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 10-14-2010, 07:26 AM
  3. Running multiple threads on multiple CPU cores?
    By Dosta in forum Threads and Synchronization
    Replies: 2
    Last Post: 09-19-2010, 04:48 PM
  4. JSP Functions
    By sysout in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-07-2009, 05:10 AM
  5. Replies: 0
    Last Post: 07-07-2008, 08:10 AM

Posting Permissions

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