mardi 3 mars 2015

The trigger('change') function not work in popup window


Vote count:

0




Suppose a text field and a button that after click on the button a popup window that contains a table shown and user by click on a row the value of text field set and popup window close.


Problem: In main window not fired change event, i try to trigger this event by JQuery after setting text in popup window but in main window this event is not fired:



$('#' + "{{ target_input }}" + '-text', window.opener.document).val(name);
$('#' + "{{ target_input }}" + '-text', window.opener.document).trigger('change');


asked 40 secs ago

Mohsen

401






The trigger('change') function not work in popup window

Aucun commentaire:

Enregistrer un commentaire