I tried the following code, but it did not work to set the input field to have the value "
. Does anyone have any idea how to set it.
<input type="text" name="fname" value="\""><br>
I tried the following code, but it did not work to set the input field to have the value "
. Does anyone have any idea how to set it.
<input type="text" name="fname" value="\""><br>
use "
HTML designed work like this.
<input type="text" name="fname" value=""">
"
(Double Quote) is not a ASCII Character. Browser can not render an Non-ASCII Character (if you have to press any key or any combination of keys except shift key to build a character).
Now you have to use HTML Character Entity Name "
or Entities Number "
or Entity Construct Encode "
for the Double Quote character. Please see the following code:
<!-- Entity Name -->
<input type="text" name="fname" value="""><br>
<!-- Entity Number -->
<input type="text" name="fname" value="""><br>
<!-- Entity Construct Encode -->
<input type="text" name="fname" value=""">
More about HTML Character Entities.
Complete cheat-sheet of HTML Character Entities