Sunday 1 September 2013

how can i get value of textbox on radio button's change event in cloning?

how can i get value of textbox on radio button's change event in cloning?

i have done cloning of radio button and textbox .so now i have many text
boxes and radio buttons on change event of radio button i need value of
its text box
for (var j = 0; j < sJsonData[1].data.length; j++) {
var abc = xyz.clone(true, true);
abc.find('input[type="text"][name="textbox1"]').attr('id', j);
abc.find('input[type="radio"][name="radio"]').attr('id', j);
}
$('input[type="radio"][name="radio"]').change(function () {
var paying_amount =
$(this).parent().children().find('input[type="text"][name="textbox1"]').val();
});
how to get value of text box on change event of radio button ?

No comments:

Post a Comment