query for name attribute js code example
Example 1: jQuery select elements by name
$('[name=myElementName]') //match any element with name=myElementName. i.e: <div name="myElementName"></div>
Example 2: accessing via name jquery
var value = $("[name='nameofobject']");