jQuery Attributes/attr


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

Ability to change/add attributes to HTML using JQuery


Copy this code and paste it in your HTML
  1. $("input.search-input").attr("value", "Search TechRelish");

URL: http://docs.jquery.com/Attributes/attr

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.