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
How to write record if no field or the field are different in physical file in rpgle ?
can you debug ile rpg program using isdb?
How can we override a file during runtime in rpg?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
how does the rpg element work?
how can you display specific subfile page on the screen in unequal subfile?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what is the procedure and explain about real time scenario.
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?
What is the difference between iter and do?
How Chain operation copies the record's data to the input buffer for the program?
what is file information data structure?
what was the robotech rpg?
What are the types of identifiers?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?