I’ve got a function that is written in javascript and I want to rewrite that in jQuery This is the function code:
function onclickRbtn(controlID , Message)
{
var s = document.getElementById(controlID);
var sVal = event.srcElement.value;
for (var i = 0; i < s.rows.length; i++)
{
if (s.getElementsByTagName("input")[i].value == sVal)
s.getElementsByTagName("label")[i].innerText = Message;
}
s.disabled = 'disabled';
}
What is this code :event.srcElement.value` and what is equivalent in jQuery?
Thanks
You mean this: