I have a drop down list that is populated through a Javscript function provided by an external company. It basically checks if the input is of a valid postcode type and then returns possible addresses into a drop-down list.
I am stuck as to how to then display a little message once the drop-down list has some options, i.e. some address have been found and populated into the select.
I've tried this:
$(function() {
function showmsg() {
if ($("#selectaddress").length > 1)
$('#buttonhint2').slideDown('normal');
}
$("#btnFind").click(showmsg)
});
But it doesn't do anything. I'm a complete novice to this all so I'm not sure if I'm even barking up the right tree. Any help much appreciated.