Hi Every one,
I am developing one web application in asp.net.,
In that application I have one checkbox(Is Negative marking).
when I check that check box one text box will display and I have to enter Minus marks.
and when I uncheck that checkbox the textbox will not display.
I need to write the code in javascript only.
so can u please explain how do that ?
Thanks in advance.
Lakshmi,
Loading
Dorababu MekaPosted Jun 8, 2011, 5:13 AM
In body write this to set text box initially to false
Your check box and text box should be as follows
AutoPostBack="false" onclick="javascriptEvent();" runat="server" />
Check the attached code
Dorababu MekaPosted Jun 8, 2011, 6:05 AM
Lakshmi Narayan JPosted Jun 8, 2011, 6:01 AM
Thanks for sending code.
It's working fine.
Thanks & Regards,
Lakshmi.
Vishal ShindePosted Jun 8, 2011, 4:19 AM
Thanks for reply,
textbox(txtMinusMarks) is in same page only.
I need to check whether the check box is checked or not,
If it is checked then display the textbox other wise don't display the textbox.
My code is
Thanks,
Lakshmi.
Posted Jun 8, 2011, 4:08 AM
Does the textbox is available in your page ?
document.getElementById("textboxid").style.visibility="visible";
try this.