Try add function to head
Code:
function setURL(){
var var1=document.getElementById('q').value;
var var2=document.getElementById('SortBy').options[document.getElementById('SortBy').selectedIndex].value;
var searchurl='http://www.wusource.com/books/textbooks.php?Search='+var1+'&Mode=books&SortBy='+var2;
var changeLink=document.getElementById('lnk')
changeLink.removeAttribute('href');
changeLink.setAttribute('href',searchurl);
}
function SetHref(){
document.getElementById('q').onkeyup=function(){setURL()}
document.getElementById('SortBy').onchange=function(){setURL()}
}
AJS.AEV(window,"load",SetHref);
//AJS.AEV(window, 'load', function() {SetHref()});
And add id to html
Code:
<form method="get" action="http://www.wusource.com/books/textbooks.php" name="f">
Search for <input name="q" id="q" value="" type="text">
<input name="Mode" value="books" type="hidden">
sorted by<strong>
<select id="SortBy" style="visibility: visible;" name="SortBy">
<option value="+pmrank">Featured Items</option>
<option value="+salesrank" selected="selected">Bestselling</option>
<option value="+reviewrank">Average Customer Review</option>
<option value="+pricerank">Price (Low to High)</option>
<option value="+inverse-pricerank">Price (High to Low)</option>
<option value="+daterank">Publication Date</option>
<option value="+titlerank">Alphabetical (A-Z)</option>
<option value="-titlerank">Alphabetical (Z-A)</option>
</select>
</strong>
<br>
<a id="lnk" href="http://www.wusource.com/books/textbooks.php" rel="gb_pageset[search_sites]">popin link</a><br>
</form>
And upload it there, I will check it again.
Bookmarks