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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 14, 2015, 12:02 AM EDT
function getValue(obj){
hiddenfieldid.value=obj.id ;
alert(obj.id);
}
and on severside you can get hiddenfield value
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 13, 2015, 10:38 PM EDT
see demo at
http://jsfiddle.net/antyrat/92WLE/1/
Abhijit PatilRank #700 · 3.4K reputationPosted Apr 13, 2015, 10:53 PM EDT
Thank you.now i got which exzactly i want
Thank you once again.
Posted Apr 13, 2015, 10:12 PM EDT
function fnGetID(Item)
{
var txtID = (Item.id.substring(e.id.indexOf("_") + 1);
Alert(txtID);
}
Abhijit PatilRank #700 · 3.4K reputationPosted Apr 13, 2015, 10:21 PM EDT
Thank you For Quick Reply.
It is not work on my machine.
if you have code can you mail me please @ [email protected]
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 13, 2015, 10:25 PM EDT
this is js fuction
and textbox
Abhijit PatilRank #700 · 3.4K reputationPosted Apr 13, 2015, 10:31 PM EDT
my current requirement is that
then how i access the Id as Textbox1 using Javascript.
NOt aTextbox 1 value.
Abhijit PatilRank #700 · 3.4K reputationPosted Apr 13, 2015, 11:25 PM EDT
one more small problem
var clientid = obj.id
how i Pass clientid to the server side.
Thank you in advance