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...

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.