Difference between RESET and CLEAR

Answer Posted / anushree

clear empties the fields while reset changes to the default value of that field.

Clear vs. Reset

Clearing a form makes all input fields blank, unchecks checkboxes, deselects multi-select choices, and so forth; whereas, resetting a form reverts all changes.

For example:

<input type="text" name="name" value="Timothy" />
<input type="reset" value="Reset" />
This produces an input field with a value of Timothy. Let's say the user then changes the value to Berners-Lee. If the user clicks the Reset button, the value of Berners-Lee will revert (reset) to Timothy.

Clearing the fields would involve changing the value attribute of the input field to the empty string, as follows:

<input type="text" name="name" value="" />
You can change the value attribute using JavaScript.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write record if no field or the field are different in physical file in rpgle ?

471


can you debug ile rpg program using isdb?

730


How can we override a file during runtime in rpg?

675


do you use message subfiles? What are the necessary keywords required coding a message subfile?

675


how does the rpg element work?

706






how can you display specific subfile page on the screen in unequal subfile?

666


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2509


what is the procedure and explain about real time scenario.

1468


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

489


What is the difference between iter and do?

660


How Chain operation copies the record's data to the input buffer for the program?

1067


what is file information data structure?

1349


what was the robotech rpg?

671


What are the types of identifiers?

561


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

702