"selectSearch"
Bootstrap 3.3.0 Snippet by amit001

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!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" /> <title>Untitled Document</title> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Select Campus<select name="selectCampus" onchange='this.form.submit()'> <option value="1" <?php if(isset($_POST['selectCampus']) && $_POST['selectCampus'] == '1') echo 'selected= "selected"';?>>All Campus</option> <option value="2" <?php if(isset($_POST['selectCampus']) && $_POST['selectCampus'] == '2') echo 'selected= "selected"';?>>Campus one</option> <option value="3" <?php if(isset($_POST['selectCampus']) && $_POST['selectCampus'] == '3') echo 'selected= "selected"';?>>Campus two</option> <option value="4" <?php if(isset($_POST['selectCampus']) && $_POST['selectCampus'] == '4') echo 'selected= "selected"';?>>Campus three</option> <option value="5" <?php if(isset($_POST['selectCampus']) && $_POST['selectCampus'] == '5') echo 'selected= "selected"';?>>Campus four</option> </select><br /> </form> <form action="" method="post"> Select Building<select name="selectBuilding" onchange='this.form.submit()'> <option value="1" <?php if(isset($_POST['selectBuilding']) && $_POST['selectBuilding'] == '1') echo 'selected= "selected"';?>>All buildings</option> <option value="2" <?php if(isset($_POST['selectBuilding']) && $_POST['selectBuilding'] == '2') echo 'selected= "selected"';?>>Building one</option> <option value="3" <?php if(isset($_POST['selectBuilding']) && $_POST['selectBuilding'] == '3') echo 'selected= "selected"';?>>Building two</option> <option value="4" <?php if(isset($_POST['selectBuilding']) && $_POST['selectBuilding'] == '4') echo 'selected= "selected"';?>>Building three</option> <option value="5" <?php if(isset($_POST['selectBuilding']) && $_POST['selectBuilding'] == '5') echo 'selected= "selected"';?>>Building four</option> </select><br /> </form> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Select System<select name="selectSystem" onchange='this.form.submit()'> <option value="1" <?php if(isset($_POST['selectSystem']) && $_POST['selectSystem'] == '1') echo 'selected= "selected"';?>>All systems</option> <option value="2" <?php if(isset($_POST['selectSystem']) && $_POST['selectSystem'] == '2') echo 'selected= "selected"';?>>System onejjjjjjjjjjjjjjjjj</option> <option value="3" <?php if(isset($_POST['selectSystem']) && $_POST['selectSystem'] == '3') echo 'selected= "selected"';?>>System two</option> <option value="4" <?php if(isset($_POST['selectSystem']) && $_POST['selectSystem'] == '4') echo 'selected= "selected"';?>>System three</option> <option value="5" <?php if(isset($_POST['selectSystem']) && $_POST['selectSystem'] == '5') echo 'selected= "selected"';?>>System four</option> </select><br /> </form> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Select Resources<select name="selectResources" onchange='this.form.submit()'> <option value="1" <?php if(isset($_POST['selectResources']) && $_POST['selectResources'] == '1') echo 'selected= "selected"';?>>All Resources</option> <option value="2" <?php if(isset($_POST['selectResources']) && $_POST['selectResources'] == '2') echo 'selected= "selected"';?>>Resource one</option> <option value="3"3 <?php if(isset($_POST['selectResources']) && $_POST['selectResources'] == '3') echo 'selected= "selected"';?>>Resource two</option> <option value="4" <?php if(isset($_POST['selectResources']) && $_POST['selectResources'] == '4') echo 'selected= "selected"';?>>Resource three</option> <option value="5" <?php if(isset($_POST['selectResources']) && $_POST['selectResources'] == '5') echo 'selected= "selected"';?>>Resource four</option> </select><br /> </form> </body> </html>

Related: See More


Questions / Comments: