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 MekaRank #457 · 5.5K reputationPosted Jun 8, 2011, 1:13 AM EDT
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
Posted Jun 8, 2011, 12:08 AM EDT
Does the textbox is available in your page ?
document.getElementById("textboxid").style.visibility="visible";
try this.
Vishal Shinde22 reputationPosted Jun 8, 2011, 12:19 AM EDT
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.
Lakshmi Narayan J22 reputationPosted Jun 8, 2011, 2:01 AM EDT
Thanks for sending code.
It's working fine.
Thanks & Regards,
Lakshmi.
Dorababu MekaRank #457 · 5.5K reputationPosted Jun 8, 2011, 2:05 AM EDT