I have a <select> list which has been populated with several options, but want to remove those options to start again.
I am using Jquery, and have tried:
$("#selectId").length = 0;
Usually, Firebug gives a half decent error message when something goes wrong or doesn't compile. In this case though, I am simply getting the following:
$('#' + divName).emtpy();
I'm trying to use console.log("item") to find out if my selector is correct, what is the best way to go about just trying to "trace" a selector?