xxxxxxxxxx
var inputElement = $('input[name="nameAttributeValue"]');
xxxxxxxxxx
$("input[type='checkbox'][name='ProductCode']").each(function(){
xxxxxxxxxx
$('[name=myElementName]') //match any element with name=myElementName. i.e: <div name="myElementName"></div>
xxxxxxxxxx
// Select the input element by its name attribute
var inputElement = $('input[name="your_input_name"]');