I'm getting a return value for this query that doesn't make sense.
code is:
var option = $(":selected").text();
result:
10 Activity
can anyone tell me why I'm getting back a 10 and spaces and how to get rid of them?
html:
<select name="datagrid_filter" onchange="startFilter(this);">
<option>All</option>
<option disabled="true">Assignment:</option>
<option disabled="true">Client:</option>
<option disabled="true">Type:</option>
<option class="type" value="Activity">   Activity</option>
<option class="type" value="Alert">   Alert</option>
<option class="type" value="Lead">   Lead</option>
<option class="type" value="Notification">   Notification</option>
</select>