css - How to apply the styles for one variable -
i have 1 variable var result,in variable stored 1 text-box value,i want apply styles variable.how apply styles variable.any 1 me please.
if want set css style text-box(html - input type - text) using java script
try this
<script type="text/javascript"> function changestyle() { var cssstring = "css style"; document.getelementbyid("my_element_id").style.csstext = cssstring; } </script> <input type="text" id="my_element_id" /> <input type="button" value="change" onlclick="changestyle()" /> replace css style actual style.
Comments
Post a Comment