Link to home
Start Free TrialLog in
Avatar of debbieau1
debbieau1Flag for United States of America

asked on

onclick works in Internet Explorer and firefox but not chrome

I have a simple function and some online code in with boostrap

Here is the function

	
		 function getList() {
		 	alert("this is list");
		 }

Open in new window

and here is the inline code

				

<div class="btn-group pull-right">				
	 <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">Get list</button>
  <ul class="dropdown-menu" role="menu" style="z-index:4;">
	<li class="sas" onclick="getList()">All List</li>
	li class="sas" onclick="getHighest()">Highest Price</li>
</ul>				
</div>

Open in new window


I just need to ensure it works in Chrome also
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The second <li> has a different function listed for the onclick... getHighest()