bind event to a selection form
Hi,
I trying to build dependable dropdown using ajax and jquery. I'm able to show the new dropdown, but i'm not how i attach an event with the new dropdown menu. I'm tryingto do following way. But, it is not working. Could please help me.
- url = 'topics.php?sectionid='+$('#section').val();
$('#topics').load(url).show();
$('#topic').bind('change', function(event) {
topicChangeHandler();
});
Here topics is the div element into which new drowpdown is shown and topic is the id of the dropdown. The dropdown is displayed. But on change nothing is happpeing.
Thanks in advance
Robert