<input type= "Radio" id= "RadioButton1" class= "Suplierredio" checked= "Checked" value= "1" name= "RadioButton"/>
<input type= "Radio" id= "RadioButton2" class= "Suplierredio" value= "2" name= "RadioButton"/>
<input type= "Radio" id= "RadioButton3" class= "Suplierredio" value= "3" name= "RadioButton"/>
Click the Vendor radio button
JQuery (Suplierredio). On ("click", Clickradio);
Get the price of a selected vendor
function Clickradio () {
JQuery (Suplierredio). each (function () {
if (this.checked = = True) {
var num = this.value;
JQuery (Checkedsuplier). val (num);
if (num== "1")
jquery (Sjprice). Val (jquery (Price1). Val ());
else if (num== "2")
jquery (Sjprice). Val (jquery (Price2). Val ());
else if (num== "3")
jquery (Sjprice). Val (jquery (Price3). Val ());
}
});
};
JQuery (radiobutton+n). attr ("Checked", true); One of the default selected
JQuery (Suplierredio). attr ("Disabled", true); Do not make changes