Re: [jQuery] Accessing value of a dynamic added input

2010-01-09 Thread brian
$(this).val() should work just fine. There must be some other issue. Are you sure the HTML is correct (eg. options all have values)? On Sat, Jan 9, 2010 at 5:55 PM, -null- wrote: > I'm adding an input and select box to a div by setting the div's > html.  I then attach a change event to the select

[jQuery] Accessing value of a dynamic added input

2010-01-09 Thread -null-
I'm adding an input and select box to a div by setting the div's html. I then attach a change event to the select which posts to a php page using ajax. I'm having a problem however accessing the value of the input from the change event. This is the event. $('#' + popup.popupId + ' select').chan