- Edited
So, when this javascript performs on the html page:
<script type="text/javascript">
$(document).on('change', '#category_id', function(event) {
event.preventDefault();
id = $(this).val();
$('#sub_category_id').html(sub_categories_array["'"+id+"'"]);
});
$(document).on('change','#sub_categories_', function(event) {
window.location.href = site_url+'/videos/category/<?php echo($_GET['id']) ?>/'+$('#sub_categories_').val();
});
</script>
how can I have this Search Form (or something similar) appear on the same sub-category page each time a subcategory page appears?
<form action="search.php" method="GET" name="sub-search">
<input id="search" name="keywords" type="text" placeholder="Type here">
<input type="submit" value="Search" />
</form>
any assistance (or example) is appreciated