136
rated 0 times
[
143]
[
7]
/ answers: 1 / hits: 31046
/ 10 Years ago, wed, august 27, 2014, 12:00:00
I have a drop down with set of 'ul' and 'li' like this,
<div style=float:left;>
<div class=group>
<div style=width:80px;>Dropdown<i class=fa fa-caret-down></i></div>
<ul style=float:left;>
<li><a href=javascript:void(0);>Option1</a></li>
<li><a href=javascript:void(0);>Option2</a></li>
<li><a href=javascript:void(0);>Option3</a></li>
</ul>
</div>
</div>
I want to add onchange() event to ul tag. I can say onchange i have to call one function SelectedItem(optionselected) with selected 'li' text as parameter.Anyone Please help me. Thank you.
More From » jquery