highlighting the textbox without using javascript or jquery
can we highlight our textbox without using javasript/jquery or css ?if yes then h开发者_C百科ow? i am on jsp page, can jsp help?
You can do it with CSS inline, without using an external stylesheet. If you really must:
<input type="text" style="background-color:#FFFFCC;" />
To change the default style (including color) of an HTML element from the default style that the browser uses, you must apply the style via CSS or JavaScript.
No, that is not possible without CSS (if you want to use things like colors). You can do it without JavaScript, though. This would be the CSS for doing it:
.textbox {
background-color: #FF0000;
}
And the markup:
<textarea class="textbox" rows="10" cols="30"></textarea>
精彩评论