I am new to jQuery and having trouble to trigger change event in drop down box.
This is my HTML markup
<select id="mini_bookinglocation" name="mini_bookinglocation">
<option selected="selected" value="">Please Select</option>
</select>
This is my jQuery
$("#mini_bookinglocation").change(function()
{
alert(" test ");
});
I have tried put this inside the document ready block as well as outside but seems I can’t get it working. I don’t see the alert coming out.
Also do I need to keep these function withing the document ready section ?
Can anyone help ?
Thanks
Just to add that the values for the above will pass dynamically using jQuery.
I found the problem. it is because in my code I use jQuery in one place and $ in another place. I was able to google this and just changed all to jQuery and removed all $ and it works. Sorry for not showing the full code but I was able to learn lot by reading all answers.
Thank you all for the help.