turning it into a function messes the formatting
http://jsbin.com/osovoh/2/edit
in this version, all works well. the label of radio button gets changed instantly.
but if you remove the /* s and thus turn js into a function triggered by the other button,
- function go(){
- var radio_elem = $('#edit-new-amount-no-cost');
- $("label[for='edit-new-amount-no-cost']").html(radio_elem).append("label changed");
- }
the formatting of the first button upon its triggering gets messed up. what's wrong?