Reputation: 2279
Any suggestion on shortening following:
$('#btn1').html($('#btn1').html().replace('string 1', 'string 22'));
Upvotes: 1
Views: 98
Reputation: 10865
Rename btn1 to b1
Upvotes: 4