Javascript examples for jQuery Method and Property:serialize
JQuery serialize function with an empty input field with a title attribute
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(function(){//from www. j av a 2s. c om console.log($('#foo').serialize()); }); </script> </head> <body> <form id="foo"> <input type="text" value="" title="Enter item description" name="description"> </form> </body> </html>