<select id="gender" name="gender" multiple="multiple" style="width:90.4%; padding:5px; margin:5px; color:#000000; ">
<option value="'M'">Male</option>
<option value="'F'">Female</option>
</select>
gender: $("#gender").val()
Anyway to stop it from creating an array?... as opposed to? It is a multi-select control - how else is it going to capture the multiple values selected.
The post value shows up like this when I vardumpWhere is your post code?
gender: $("#gender").val()
Does not really make sense - in the context of the usual definition of gender?JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
ASKER
The post value shows up like this when I vardump
array (size=1)
0 => string ''M'' (length=3)
Not sure why it's turned into an array or adding additional quotes around it.