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

without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?

3 Answers   HSBC, TCS,


Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?

4 Answers   IBM,


How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,


what is importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????

1 Answers   CTS,






How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?

4 Answers   CTS,


How to change the name of physical members Dynamically?

1 Answers  


what is batch debug in as400?

3 Answers  


what is program status data structure?

1 Answers   IBM,


what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?

4 Answers  


is this a rpg channel?

0 Answers   IBM,


What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???

7 Answers   HSBC, Systime,


Categories