jquery - Serialize select option fields -
i need serialize fields in form except select option
tags value selected default value. select option html tag so. if selected option has no value needs ignored jquery serialize method.
<select> <option>select brand</option> <option value='1'>sony</option> <option value='2'>apple</option> <option value='3'>nokia</option> </select>
thank answers able achieve via code $(':not(select[value=""])', myform).serialize()
;
Comments
Post a Comment