Posted By

stevielamb83 on 08/24/12


Tagged

form jquery


Versions (?)

jQuery Form Attribute Change


 / Published in: JavaScript
 

Simply changes the name attribute on input elements when the page is loaded.

  1. $(document).ready(function(){
  2. $('#FirstName').attr('name', 'First Name');
  3. $('#ZipCode').attr('name', 'Zip Code');
  4. $('#EmailAddress').attr('name', 'Email Address');
  5. });

Report this snippet  

You need to login to post a comment.