[jQuery] Problem accessing new elements inserted into the dom

2009-07-14 Thread developm...@sdinternet.co.uk
I have a php order form that uses Ajax that inserts some hidden form elements into the current page. I can see the hidden form elements when I look using Firebug but cannot access the new elements within jQuery functions. I know if it was an event I wanted to attach to on any new elements I could

[jQuery] Re: Event for when a is changed?

2009-07-01 Thread developm...@sdinternet.co.uk
If you have a single dropdown list with the id of 'theSelectsID' the below code should store the selected item into the variable 'str'. Hope that helps $("#theSelectsID").change(function () { var str = ""; str = $("#theSelectsID").val(); });