jquery replace attribute

Solutions on MaxInterview for jquery replace attribute by the best coders in the world

showing results for - "jquery replace attribute"
Christian
12 Apr 2019
1$("#trId").attr("filterCol", newValue);
2
Aoibheann
17 Jul 2019
1$(newRow).find('[id*="rules"]').each(function(){
2    // Update the 'rules[0]' part of the name attribute to contain the latest count 
3    $(this).attr('name',$(this).attr('name').replace('rules\[0\]','rules\[$count\]'));
4}); 
5