# SelectBox
Open me!
Demo View | Source Code (opens new window) | Download all widgets
Assets:
Images:
JavaScripts:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SelectBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../core/lib/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery.dropdownmenu.js"></script>
<script type="text/javascript" src="js/select-box.js"></script>
</head>
<body>
<h1>SelectBox</h1>
<div class="content">
<select class="styled">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
</div>
</body>
</html>
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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.styled {
width: 290px;
}
span.customStyleSelectBox {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
background: url("../core/images/dropdown_bg.png");
width: 276px;
height: 29px;
color: #000000;
padding: 0 7px;
line-height: 29px;
}
.customStyleSelectBoxInner {
background:url("../core/images/dropdown_arrow.png") no-repeat center right;
margin-top: 1px;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(function() {
$(".styled").customStyle();
});
1
2
3
2
3
// Make sure to add code blocks to your code group