I currently have multiple selections on a page that is dynamically added via calls ajaxusing jquery.
The problem I am facing is that I cannot get the change event to work with the added selection unless I use onchangeinside the tag, for example.
<select id="Size" size="1" onchange="onChange(this);">
This works, but I'm wondering if there is a way to get it to be assigned to jquery. I tried to use $('select').change(onChange($(this));in the usual place $(document).ready, but it did not work.
I tried adding an event with bind after ajax call, but that didn't work either.
Is there a better way to schedule an event?
Matthew
source
share