Hi,
My code is run on browser but not on emulator.I want to change image of select option button on button click.It work fine with browser but not on emulator.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>
<title>Tizen Web IDE - Tizen - Tizen basic Application</title>
<script type="text/javascript" src="js/ddslick.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script src="js/main.js"></script>
<script src="js/momo.json"></script>
<script src="js/moh.js"></script>
</head>
<body>
<select id="demo-htmlselect">
<option value="0" data-imagesrc="images/m.jpg"
data-description="Description with Facebook">Facebook</option>
<option value="1" data-imagesrc="images/k.jpg"
data-description="Description with Twitter">Twitter</option>
</select>
<input type="button" id="make-it-slick" value="click me">
</body>
</html>
js file is
$(document).ready(function(){
$('#make-it-slick').on('click', function(){
$('#demo-htmlselect').ddslick();
});
});
json file
var ddData = [
{
text: "Facebook",
value: 1,
selected: false,
description: "Description with Facebook",
imageSrc: "images/m.jpg"
},
{
text: "Twitter",
value: 2,
selected: false,
description: "Description with Twitter",
imageSrc: "images/p.jpg"
}
];
please help me.My code is running on browser but not on emulator.When i right click on index.html and open it with web browser it work fine.
please help me
thanks in advance
Thanks and regards
Mohit Kumar