jQuery.selectboxes removeOption()
Base on the doc page located here http://www.texotela.co.uk/code/jquery/select/ if I wanted to remove (clear) items from a select box all I need to do is call:
$('#select_box').removeOption(/./);
But in my case I had a select box like this:
<select name="select_box" id="select_box">
<option value="">N/A</option>
<option value="1">Low</option>
<option value="2">Meduim</option>
<option value="3">High</option>
</select>
and of cause the syntax specified above doesn’t do the trick; this is how I fix it:
$('#select_box').removeOption(/(.?)/);
Was that how it should be done? oh ! by the way the shorter way
$('#select_box').empty();
