Problem in Default Value of Check Box

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2007
Posts: 2
Reputation: Cookie Kumar is an unknown quantity at this point 
Solved Threads: 0
Cookie Kumar Cookie Kumar is offline Offline
Newbie Poster

Problem in Default Value of Check Box

 
0
  #1
Aug 8th, 2007
Hi Friends,
I have a form which contains elements such as check boxes,text box,text area ., Problem is in Check boxes.
By default, Check boxes are unchecked and text boxes are blank. I clicked one check box, entered some values in text boxes. then After a page refresh ,the values of text boxes are cleared.But the check box is appears with check mark. the default value (unchecked) is not restored... Why? How can i clear the check box value on refresh?

Please Help me as soon as possible...
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Problem in Default Value of Check Box

 
0
  #2
Aug 8th, 2007
That's interesting, because when I refresh the page, the text boxes are cleared only if I replaced the HTML file before the refresh while developing a web page. I have been leaving my test data in the boxes and using them again after changing the JavaScript and refreshing.

Put a reset button on the page. That clears all fields.

Note that the JavaScript value for a checked box is true, and an unchecked box has a value of false.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 3737 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC