Dear All,
First I have a combo box populated from mysql db. Then onChange of the first combo box then I would like to populate my second combo box. I am trying out the jquery method as below. The first combo box id is $clientID. The problem I dont get the alert method shown that means is not working. What could be wrong here? Thank you.
$("#clientID").ready(function()
{
$("#clientID").onchange(function()
{
alert("getnow");
var val = $(this).val();
// fire a POST request to populate.php
$.post('getHaulierNotInClient1.php', { value : val }, populateDropdown, 'html'); }
}
);
}
);