Answers for "jquery replace attribute"

1

jquery replace attribute

$("#trId").attr("filterCol", newValue);
Posted by: Guest on August-27-2021
0

jquery replace attribute

$(newRow).find('[id*="rules"]').each(function(){
    // Update the 'rules[0]' part of the name attribute to contain the latest count 
    $(this).attr('name',$(this).attr('name').replace('rules\[0\]','rules\[$count\]'));
});
Posted by: Guest on August-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language