i have a autosearch that is bringing in a value
- <input type="text" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
this is my function
-
function lookup(inputString) {
-
if(inputString.length == 0) {
-
// Hide the suggestion box.
-
$('#suggestions').hide();
-
-
} else {
-
$.post("rpc.php",{queryString:""+inputString+"",one:""+$("#oneone").val()+""},function(data){
-
-
if(data.length >0) {
-
$('#suggestions').show();
-
$('#autoSuggestionsList').html(data);
-
}
-
});
-
}
-
}
-
-
-
function fill(thisValue) {
-
$('#inputString').val(thisValue);
-
setTimeout("$('#suggestions').hide();", 200);
-
}
-
i need to now search on that value i have this
-
<input type="button" value="Search!" onClick="inputter(document.getElementById('inputString').value)">
-
this is my function
-
function inputter(element)
-
{
-
parent.location='1.php?option=s_last&id=' + escape(element);
-
-
}
-
-
-
-
$(document).ready(function() {
-
-
$('#inputString').keyup(function(e) {
-
-
if(!e) e = window.event;
-
-
if(e.keyCode == 13) {
-
inputter(document.getElementById('inputString').value);
-
}
-
}
-
-
)
-
} )
-
i can not get the value to 1.php can anyone tell me how i should hand this over on 1.php please