JavaScript onchange event

  • 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

  • Jean Jordaan
    Jean Jordaan

    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");