vendredi 23 janvier 2015

How to get the values from the selected options which are selected through check box

I got the nice plugin from the eric hanes ...from this site :


http://ift.tt/139zPwE


I want the values get alert from the selected check box from the select options ...



<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery MultiSelect Widget Demo</title>
<link rel="stylesheet" type="text/css" href="../jquery.multiselect.css" />
<link rel="stylesheet" type="text/css" href="assets/style.css" />
<link rel="stylesheet" type="text/css" href="assets/prettify.css" />
<link rel="stylesheet" type="text/css" href="http://ift.tt/1rBG7ui" />
<script type="text/javascript" src="http://ift.tt/ShXNZA"></script>
<script type="text/javascript" src="http://ift.tt/1d6AYp1"></script>
<script type="text/javascript" src="assets/prettify.js"></script>
<script type="text/javascript" src="../src/jquery.multiselect.js"></script>
<script type="text/javascript">
$(function(){
$("select").multiselect();
});
</script>
</head>
<body id="test">

<p>
<select title="Basic example" multiple="multiple" name="example-basic" size="5">
<option value="option1">Option 1</option>
<option value="option2">Option 2</option>
<option value="option3">Option 3</option>
<option value="option4">Option 4</option>
<option value="option5">Option 5</option>
<option value="option6">Option 6</option>
<option value="option7">Option 7</option>
<option value="option8">Option 8</option>
<option value="option9">Option 9</option>
<option value="option10">Option 10</option>
<option value="option11">Option 11</option>
<option value="option12">Option 12</option>
</select>
</p>


</body>
</html>


For eg : if I select option 1 and option 2, I should get alert of option 1 and again second alert option 2..


Thanks..





Aucun commentaire:

Enregistrer un commentaire