target input by type and name (selector)

You want a multiple attribute selector

$("input[type="checkbox"][name="ProductCode"]").each(function(){ ...

or

$("input:checkbox[name="ProductCode"]").each(function(){ ...

It would be better to use a CSS class to identify those that you want to select however as a lot of the modern browsers implement the document.getElementsByClassName method which will be used to select elements and be much faster than selecting by the name attribute

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)