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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -