Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11425 closed bug (invalid)

serialize() and custom input atributes dont work

Reported by: zkizzik@… 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="test@gmail.com" zcodeg="inner" />
   <input type="submit">
<script> alert($('#lol').serialize()); // age=22 only? </script>

Change History (4)

comment:2 Changed 5 years ago by timmywil

  • Component changed from unfiled to ajax
  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed

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 follow-up: Changed 5 years ago by anonymous


Is invalid?

comment:4 in reply to: ↑ 3 Changed 5 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.