Attribute add using jQuery

Attribute add using jQuery,
Add Attribute to an HTML Element in jQuery,
Adding attribute in jQuery,
Add and remove attribute with jquery,
How to add attribute to an element using jquery,
jQuery Get Attribute, Set Attribute, Remove Attribute,
Set values to custom attributes in Jquery

attribute-add-using-jquery.html

<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
<meta charset="utf-8">
<title>Attribute add using jQuery</title>
</head>
<body>
First name: <input id="name" type="text" name="fname" >
<input id="button1" type="button" value="Click to Add an Attribute" />
</body>
<script>
$(document).ready(function(){ 
$('#button1').click(function(){ 
$('#name').prop('value', 'input your name here');
});
});
</script>
</html>