[jQuery] Re: UI Dialog: Need the ID of the clicked button...

2009-11-18 Thread discern
Use a global. Makes more sense than my solution. Thanks. I always forget about globals.

[jQuery] Re: UI Dialog: Need the ID of the clicked button...

2009-11-18 Thread discern
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

[jQuery] Re: UI Dialog: Need the ID of the clicked button...

2009-11-18 Thread MorningZ
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