Thursday 15 July 2010

javascript - In the html text box, how to show value which itself contains "" symbol? -



javascript - In the html text box, how to show value which itself contains "" symbol? -

is possible give "" symbol in html text box tag?

my requirement this:

<input name="myapi" id="testapi" type="text" value="{"value": "!myapi!sdfg" }" class="revapi" hidden="true"/>

where {"value": "!myapi!sdfg" } value of text box

is there way so?

use html entities. here example

<input type = "text" value = "&quot;{&quot;value&quot;: &quot;!myapi!sdfg&quot;}&quot;">

javascript html

No comments:

Post a Comment