Hi,
I’ve coded some autocomplete ajax for my own use, and I’ve created a function like this:
[CODE]function doSearch(field, box)
{
$.post(“ajax/phpSide.php”, {phpField: “”+field+””, phpBox: “”+box+””},
function(data)
{
if(data.length >0)
{
$(‘#suggestions’).show();
$(‘#suggestionsList’).html(data);
}
});
}
But for this function to work, I gotta include jquery-1.2.1.pack.js
The only use jquery-1.2.1.pack.js for me in this case is this function and nothing more. I have an onload event on the site and in the pages with jquery-1.2.1.pack.js included, that onload event fails.
I don’t know what is the conflict that jquery-1.2.1.pack.js is making. I was thinking about removing jquery-1.2.1.pack.js and replace it with something more simple which only let me run my function. (I probably have to modify my function)
Can someone help me with this? What to use other than jquery-1.2.1.pack.js and how to modify my own function?
Thanks in advance