jQuery Form Attribute Change


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.