Doalog onClose get contents of a div
Permalink
i'm trying to create a multiple-user selection box (i can't use the built in 1 as it uses custom user attributes that don't display in the default box) and I am storing the selected ID's of the people selected in a form input inside the dialog box.
The dialog box is loaded via ajax.
How can i (in the onclose method) capture the content of this hidden input (#selectedPlayerIDS) and store them on the calling page to they can be uploaded with the rest of the form into the database.
Thanks in advance!
The dialog box is loaded via ajax.
How can i (in the onclose method) capture the content of this hidden input (#selectedPlayerIDS) and store them on the calling page to they can be uploaded with the rest of the form into the database.
Thanks in advance!
Some events translate from XX to onXX, but only a few.
My usual approach is to handle a click event for the 'close' or 'save' button on the dialog, grab the data, then either remove the dialog or return true and let the button click complete.