Tuesday, July 31, 2012

javascript – Onmouseover change the color of span: first-child color



I am getting problem here:



<ul id=\"parentnode\">
<li><span>I need color change here</span><span>no color</span><span>nocolor</span></li>
<!-- continuing li tags from database -->
</ul>


Here, Onmouseover <li> tag i have to change the color of text which is inside the <span> first-child.

Is it possible to change through Javascript, How ?


Note: It is not possible to give id\’s to <li> tag or <span> tag, because they are dynamically presenting from database.


Thank you.






Rating: 1 out of 5 based on 3 ratings



The post javascript – Onmouseover <li> change the color of span: first-child color appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/javascript-onmouseover-li-change-the-color-of-span-first-child-color.html

No comments:

Post a Comment