Use a global. Makes more sense than my solution. Thanks. I always
forget about globals.
Solved my own problem (again). For anyone else with a similar
question, just add a hidden field to your dialog form:
...
Then, in the click event, add:
$("#id").val(id);
after the dialog('open') line.
The final result is:
var opt = {
autoOpen: false,
modal: true,
b
Example i whipped up quick:
http://jsbin.com/acucu/edit
On Nov 18, 2:05 pm, discern wrote:
> Because I am using the CLASS of the button to open UI Dialog (as
> opposed to the ID), how can I pass it the ID (or any data, for that
> matter)? I need to pass the ID of the button to dialog so I know
3 matches
Mail list logo