vendredi 6 février 2015

How to Change page using the bootstrap-typeahead plugin?


Vote count:

0




In my website I have a search box, when one of the items in the search box is clicked I would like to change page. For example when "Maths" is typed in and searched in the search box i would like the Maths.html page to be loaded up. I'm not really sure how to do this could anyone help me out? Any help would be hugely appreciated! (I'm using the bootstrap-typeahead plugin)


Here my Code:



<body>
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input id="subjects-input" type="text" class="form-control" placeholder="Search">
</div>
</form>


<script type = "text/javascript" src = "../jquery.js"></script>
<script src="http://ift.tt/1tSH0Pd"></script>
<script src="../bootstrap-typeahead.js" type="text/javascript"></script>

<script>
$('#subjects-input').typeahead({
source: [
{ name: 'Maths' },
{ name: 'French' },
{ name: 'English' },
{ name: 'History' },
{ name: 'German' },
{ name: 'Geography' },
{ name: 'Science' }
],
});
</script>

</body>


asked 13 secs ago







How to Change page using the bootstrap-typeahead plugin?

Aucun commentaire:

Enregistrer un commentaire