Answers for "how to set name from jquery"

12

get a element using name in jquery

$('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'
Posted by: Guest on March-16-2020
0

$[name] in jquery

if ($('[name=RDW]').val().trim() != "" && typeof ($('[name=RDW]').val().trim()) != 'undefined') {
html += "<tr><td>RDW (%)</td><td>" + $('[name=RDW]').val().trim() + "</td><td>  (13-22)(15-27)</td></tr>";}
Posted by: Guest on January-05-2022

Code answers related to "how to set name from jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language