0
can we apply css to a variable in Javascript??..if yes how?..pls explain
Example:var name=promt("Your name"); //in script part now can we apply css in that var name??
5 Antworten
+ 2
What you mean for "apply css to variable in javascript"? Css is applied to html elemtents only...
+ 2
You are welcome but can you explain in practical way what you wanted get?
+ 1
thanks KrOW
+ 1
I continue to not understand what you wanted to get... Maybe you want know how make an text editor with highlight feature like on SL?
0
actually i was asking that can we add animations to scripting element....but as u said it that css only works on html elements
like if i write <div class ="d"></div>
.d{..some code..}..can be used ....but can we use the same for javascripts like .name { }or .var name
.....