problem trigger Autocomplet plugin onclick in firefox

problem trigger Autocomplet plugin onclick in firefox

Hi,

im trying to trigger the autocomplet plugin from a onclick event like this:

function autocomplet(myid)
{


$().ready(function() {
 $(myid).autocomplete("include/mysql.php", {
  width: 260,
  selectFirst: true,
  minChars: 0
 });
 
});








}

and call it like this : onclick="autocomplet(someid)".

This works perfectly fine in Internet Explorer but not in firefox.

Anyone knows what im doing wrong? Thanks!

Best regards,
zumakasi