jQUERY element set value code example
Example 1: jquery set att
$input.attr("attributeName", "attributeValue");
Example 2: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})
$input.attr("attributeName", "attributeValue");
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})