xxxxxxxxxx
// Select the input element by its name attribute
var inputElement = $('input[name="your_input_name"]');
xxxxxxxxxx
$('td[name ="tcol1"]') // matches exactly 'tcol1'
$('td[name^="tcol"]' ) // matches those that begin with 'tcol'
$('td[name$="tcol"]' ) // matches those that end with 'tcol'
$('td[name*="tcol"]' ) // matches those that contain 'tcol'
xxxxxxxxxx
$("input[type='checkbox'][name='ProductCode']").each(function(){
xxxxxxxxxx
$('td[name="tcol1"]') // Matches exactly 'tcol1'
$('td[name^="tcol"]' ) // Matches those that begin with 'tcol'
$('td[name$="tcol"]' ) // Matches those that end with 'tcol'
$('td[name*="tcol"]' ) // Matches those that contain 'tcol'
xxxxxxxxxx
// HTML markup
<div id="myDiv">Hello, World!</div>
// jQuery code
$(document).ready(function() {
// Select the element with ID "myDiv" using a specific selector name
var mySelector = "#myDiv";
// Perform actions on the selected element
$(mySelector).text("Hello, Stack Overflow!");
// Display the modified content of the selected element
console.log($(mySelector).text());
});