Hi all,
as a newcommer to asp.net, I am having trouble with a simple task.
I have a datalist, in which I have added a textbox.
What I want, is when a user clicks on a button on my datalist, the textbox will turn hidden. Ofcourse I would like all this to happen on the client side, without posting the page back.
Now, when I do :
onclick="this.style.visibility='hidden'" , it works great, and the button disapears, but how do I call this to work on another object in my tempalete. for example:
onclick="txtbox.style.visibility='hidden'" . Now I know I cant call for txtbox, since the datalist makes multiple of them, but I how do I call the specific object where the button was clicked??
anyhelp will be great.
Thanks
Eli
as a newcommer to asp.net, I am having trouble with a simple task.
I have a datalist, in which I have added a textbox.
What I want, is when a user clicks on a button on my datalist, the textbox will turn hidden. Ofcourse I would like all this to happen on the client side, without posting the page back.
Now, when I do :
onclick="this.style.visibility='hidden'" , it works great, and the button disapears, but how do I call this to work on another object in my tempalete. for example:
onclick="txtbox.style.visibility='hidden'" . Now I know I cant call for txtbox, since the datalist makes multiple of them, but I how do I call the specific object where the button was clicked??
anyhelp will be great.
Thanks
Eli