$ .SerializeArray () Gets value of the input is less than the value of bug problem

Today modification form Form, found several input values ​​are stored not on the Internet search is $ .serializeArray () Gets the value of not disabled. If you want the input element becomes unavailable, the input can be set to readonly, and not disabled;

If you want the input element becomes unavailable, the input can be set to readonly, rather than disabled.

<input name="settlementName" id="realname" class="zcinput" type="text" readonly="readonly" value="">

There is the ability to use plug-in, plug-in compatibility mode should be to solve this problem.

I can refer to Bowen jquery.serializejson.min.js Magical

 

Guess you like

Origin www.cnblogs.com/shj-com/p/11433341.html