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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -