tags:

views:

74

answers:

1

Any suggestion on shortening following:

$('#btn1').html($('#btn1').html().replace('string 1', 'string 22'));
+4  A: 

Rename btn1 to b1

Russ Bradberry
funny :-), so it can't be shortened?
krul
not the way you're doing it. if you are doing this often you can create a function that shortens it.
Russ Bradberry
not doing it often, thanks
krul