hi folks,
I have 6 textboxes in my pages i want to pass the which textbox get required to call the javascript function.
i am using this keyword but it show the unspecified .
Thank you in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Apr 14, 2015, 4:02 AM
function getValue(obj){
hiddenfieldid.value=obj.id ;
alert(obj.id);
}
and on severside you can get hiddenfield value
Abhijit PatilPosted Apr 14, 2015, 3:25 AM
one more small problem
var clientid = obj.id
how i Pass clientid to the server side.
Thank you in advance
Abhijit PatilPosted Apr 14, 2015, 2:53 AM
Thank you.now i got which exzactly i want
Thank you once again.
Khargesh RajputPosted Apr 14, 2015, 2:38 AM
see demo at
http://jsfiddle.net/antyrat/92WLE/1/
Abhijit PatilPosted Apr 14, 2015, 2:31 AM
my current requirement is that
then how i access the Id as Textbox1 using Javascript.
NOt aTextbox 1 value.
Khargesh RajputPosted Apr 14, 2015, 2:25 AM
this is js fuction
and textbox
Abhijit PatilPosted Apr 14, 2015, 2:21 AM
Thank you For Quick Reply.
It is not work on my machine.
if you have code can you mail me please @ [email protected]
Posted Apr 14, 2015, 2:12 AM
function fnGetID(Item)
{
var txtID = (Item.id.substring(e.id.indexOf("_") + 1);
Alert(txtID);
}