javascript - how to change the css property of aboslute position div with parent div id -
<html> <head> <script src="jquery.min.js"></script> </head> <body> <div id="disp"> <div> hi how u </div> <div style="position:absolute;left:50px;top:100px;"> hello </div> </div> <script type="text/javascript"> $(function(){ $("#disp").css({"background-color":"#00ff00"}); }); </script> </body> </html>
here giving bluish color "hi how u" not reflect in next div because in position:aboslute how create part of parent div
.val
used value property of <input>
s, value of selectedindex alternative of <select>
s, et. al.
i'm not sure want, think mean utilize .html
instead.
javascript jquery
No comments:
Post a Comment