Event on select object (form edit)

Event on select object (form edit)

AloneInTheDarkAloneInTheDark Posts: 30Questions: 7Answers: 0

Hi,
i want insert a event change on select object in form edit.
How can i do?
tnk

Answers

  • AloneInTheDarkAloneInTheDark Posts: 30Questions: 7Answers: 0
    edited March 2016

    Hi,
    i have found this solution:

    $('select',editor.field('<field name>').node()).on('click',function ()
    {
    ....
    }
    );
    

    Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

  • allanallan Posts: 63,783Questions: 1Answers: 10,511 Site admin

    Good to hear you found a solution. field().input() is the other option:

    editor.field('myField').input().on( 'change', function () {
       ...
    } );
    

    Allan

This discussion has been closed.