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


You need to login to view comments.