Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm using jQuery Mobile 1.4.0 for button toggle.Link.I have included the jquery 1.4.0 and the following html tag
HTML
<label for="flip-mini">Flip switch:</label>
<select name="flip-mini" id="flip-mini" data-role="slider" data-mini="true">
  <option value="off">Off</option>
  <option value="on">On</option>
</select>


But im only getting a dropdown list..can anyone help..

Link for jquery Mobile 1.4.0
Posted

1 solution

Try this:
HTML
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet">

href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-

1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-<br mode=" hold=" /><br mode="></script>
</link></meta></head>
<body>
<label for="flip-mini">Flip switch:</label>
<select name="flip-mini" id="flip-mini" data-role="slider" mode="hold" />
mini="true">
  <option value="off">Off</option>
  <option value="on">On</option>

</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900