JavaScript onchange event

Help
2011-12-14
2013-04-25
  • Eliott Minkovitch

    Hi guys,

    is there any way to put javasvript into a selection field so that the onChange event can be captured and directed to a function?

    I know that javascript can be coded in a computed rich text field, but i am interested in getting events to fire from different fields.

    Many thanks
    Eliott

     
  • Jean Jordaan

    Jean Jordaan - 2012-01-05

    Let the javascript in the richtext field look up your selection field element in the DOM, and set the event on it. Note that jQuery is available for use, so you can select stuff like:

    var fieldsCol = jq("form#plomino_form div#toggle input:checkbox");
    
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks