Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11425 closed bug (invalid)

serialize() and custom input atributes dont work

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: ajax Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:


<form id="lol" method="post" action="?" zidprofile="210" zmarked="true"  referer="http://yahoo.com/">
   <input type="text" name="age" value="22" />
   <input type="text" name="name" value="Jhon" ztarget="415" />
   <input type="text" name="mail" value="[email protected]" zcodeg="inner" />
   <input type="submit">
<script> alert($('#lol').serialize()); // age=22 only? </script>

Change History (4)

comment:2 Changed 11 years ago by timmywil

Component: unfiledajax
Priority: undecidedlow
Resolution: invalid
Status: newclosed

That is incorrect usage of .serialize() and invalid html (http://dev.w3.org/html5/spec/global-attributes.html#embedding-custom-non-visible-data-with-the-data-attributes). Please ask for support on the forums or on the #jquery irc channel.

comment:3 Changed 11 years ago by anonymous


Is invalid?

comment:4 in reply to:  3 Changed 11 years ago by anonymous

Replying to anonymous:


Is invalid?

Valid from JavaScript but no jQuery? This work!: http://code.google.com/p/form-serialize/

Note: See TracTickets for help on using tickets.