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

Can someone tell me tell me what is meant by message wait...?

1 Answers  


parameters cannot be passed in which one??

2 Answers   CTS,


how do you use commitment control in rpg?

0 Answers   IBM,


Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?

3 Answers  


Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,






this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002

1 Answers  


How we will read call stack?

4 Answers  


how do I declare a table or array in rpg iv?

0 Answers   IBM,


i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.

3 Answers   HSBC,


I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.

3 Answers  


What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?

3 Answers   HSBC, IBM,


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


Categories