manishrathi
07-24-2009, 03:28 PM
<input type="text" name="query_box" />
<input type="submit" value="submit" />
Above code , displays a text box in the page and we can enter value in it. Which can be submitted with click of submit button
Now we are providing value attribute in the input box
<input type="text" name="query_box" value="enter query" />
<input type="submit" value="submit" />
Above code , displays a text box in the page with value in it. Can this value be changed ? If we change this value then it replaces the existing default value provided in the box ? Is the value provided in the default box, only there till it is changed by the user ?
<input type="submit" value="submit" />
Above code , displays a text box in the page and we can enter value in it. Which can be submitted with click of submit button
Now we are providing value attribute in the input box
<input type="text" name="query_box" value="enter query" />
<input type="submit" value="submit" />
Above code , displays a text box in the page with value in it. Can this value be changed ? If we change this value then it replaces the existing default value provided in the box ? Is the value provided in the default box, only there till it is changed by the user ?