First download the jquery. multiselect. js plug-in and then copy the following code. You only need to change the path to select multiple drop-down boxes. If it is easy to use, please support more!
Copy codeThe Code is as follows:
<! 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>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Style type = "text/css">
<! --
Body {
Margin-left: 5px;
Margin-top: 5px;
Margin-right: 5px;
Margin-bottom: 5px;
}
-->
</Style>
<Script type = "text/javascript" src = "jquery. js"> </script>
<Link rel = "stylesheet" type = "text/css" href = "jquery-ui.css"/>
<Script type = "text/javascript" src = "jquery-ui.min.js"> </script>
<Script type = "text/javascript" src = "jquery. multiselect. js"> </script>
<Link rel = "stylesheet" type = "text/css" href = "jquery.multiselect.css"/>
<Script type = "text/javascript">
$ (Function (){
$ ("# Company"). multiselect ();
});
</Script>
</Head>
<Body>
<Table align = "center">
<Tr>
<Td height = "49"> <select name = "company" id = "company">
<Option value = "North Company" selected = "selected"> North company [Head Office] </option>
<Option value = "Southwest China"> Southwest China </option>
</Select> <span id = "company1" style = "color: # FF0000"> </span> </td>
<Td align = "left"> </td>
</Tr>
</Table>
</Body>
</Html>