Trying to sent a var (myvar) from a hyperlink to jquery doesnt work in firefox only in IE. .live bug?

Trying to sent a var (myvar) from a hyperlink to jquery doesnt work in firefox only in IE. .live bug?

Hello all,
I'm trying to sent a var to my jquery script when i click on a hyperlink inside the search.php.
I had discovered that this will only work when using .live, but it wont work with firefox, chrome. It will only work in IE. Is there a workaround for this?

This is the situation:
Page 1: index.php -->main page with search input field.
Page 2: search.php -->contains search results and the hyperlink with the value i sent to the jquery.
This is the hyperlink: echo "<a href=\"#\" id=\"myhyperlink\" value=\"myvar\">Next</a>";

When i click on the hyperlink with firefox nothing happens. In IE it works.
This is my js code:
  1. //global var
  2. var order;
  3. var SearchFunction = function(e)

  4. {
  5.       q=$("#q").val();
  6.       $("#result").load("search.php?search="+q+"&order="+order);
  7. };


  8. $(document).ready(function() {
  9.       $("#q").keyup(SearchFunction);
  10.      

  11.       $('#myhyperlink').live(
  12.      {
  13.       click: function()
  14.       {
  15.       order=$("#myhyperlink").val();
  16.       alert(order);
  17.       SearchFunction();
  18.       }
  19. });
  20.  
  21. });
Any help would be appreciated!