As in topic - how to get selected items count in ListBox with jQuery, while user is selecting new item?
I have these code:
@Html.ListBoxFor(x => Mode
Try this :
$(document).ready(function() { $('#StatesID').click(countStates); });