JQuery serialize function with an empty input field with a title attribute - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:serialize

Description

JQuery serialize function with an empty input field with a title attribute

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials