Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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]'));
}); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #replace #attribute
ADD COMMENT
Topic
Name
5+5 =