meisam1366
دوشنبه 02 خرداد 1390, 15:20 عصر
با سلام خدمت دوستان!
سوال من اینه که چطور میشه مقدار انتخاب شده یک RadioButtonList رو که توی ASP.net ایجاد کردیم، در سمت کاربر توسط جاوا اسکریپت با یه Alter نمایش بدیم.
من کد زیر رو استفاده کردم ولی جواب نداد:
var radio = document.getElementById('<%=RadioButtonList1.ClientID%>');
var r = radio.value;
alert('Selected Item Value is: "' + r + '"');
.
ممنون میشم راهنمایی کنید.
سوال من اینه که چطور میشه مقدار انتخاب شده یک RadioButtonList رو که توی ASP.net ایجاد کردیم، در سمت کاربر توسط جاوا اسکریپت با یه Alter نمایش بدیم.
من کد زیر رو استفاده کردم ولی جواب نداد:
var radio = document.getElementById('<%=RadioButtonList1.ClientID%>');
var r = radio.value;
alert('Selected Item Value is: "' + r + '"');
.
ممنون میشم راهنمایی کنید.