-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjqSelection.html
More file actions
40 lines (30 loc) · 897 Bytes
/
Copy pathjqSelection.html
File metadata and controls
40 lines (30 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!-- Clientsc6J.htm -->
<HTML>
<HEAD>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
function cmdSubmit_OnClick() {
$(document).ready(function (){
var selectedOption = $('#fruits option:selected');
alert(" Fruit Choice = " + "\n" + "\t" + selectedOption.val()) ;
});
}
</script>
</HEAD>
<BODY>
</CENTER> </H4>
<HR>
<H4> Choose one or more Fruits </H4>
<PRE>
<SELECT id="fruits" SIZE=4 MULTIPLE>
<OPTION VALUE=Orange> Orange
<OPTION VALUE=Apple SELECTED> Apple
<OPTION VALUE=Bannana> Bannana
<OPTION VALUE=Mango> Mango
</SELECT>
<HR>
<INPUT TYPE=BUTTON VALUE="Submit Fruit Choices" NAME="cmdSubmit"
onClick="cmdSubmit_OnClick();">
</PRE>
</BODY>
<HTML>