Difference between RESET and CLEAR



Difference between RESET and CLEAR..

Answer / 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

More RPG400 Interview Questions

3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


What is the difference between inner join @ outer join

4 Answers  


How do you call procedures in ILE?

3 Answers  


Need a sql query: retrive all duplicate records in table

3 Answers  


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


check existence of one record without using chain or read?

1 Answers   IBM,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


WHAT IS MEANT BY SIGNATURE VAILOTION ERROR

1 Answers   IBM,


what is the difference between SETON RT & RETURN?

5 Answers  


how to check on which PF , the LF is dependant ?

4 Answers   IBM,


Categories