How click a link with JQuery

How click a link with JQuery

Hello.. I am very new to JQuery....I have the following questions..

1) I am using AHK Hotkeys to click a link.....with this code...
  1. com_init()
  2. pwb:=iweb_getwin("")         ;("")...blank...focus on active window 

  3. text:= COM_Invoke(pwb, "document.body.innerhtml")
  4. string = fruits

  5. IfNotInString, text, %string%
  6.   {
  7.   Send, {f5}
  8.   while COM_Invoke( pwb, "readystate" ) <> 4 
  9.   Sleep, 50 
  10.   while COM_Invoke( pwb, "document.readystate" ) <> "complete" 
  11.   Sleep, 50
  12.   Goto, try_ctf3
  13.   }

  14. else
  15.   {
  16.   JStoSend=javascript:window.location.replace('/market.jsp?order_date=01-01-2013&amp;order_type=Fruits&amp;lang=EN')
  17.   COM_Invoke(pwb, "Navigate", JStoSend)
  18.   Sleep, 50
  19.   }
  20. return
I save this as a file with .ahk extension (file type)....Now I am trying to try with JQuery....

2) How do i do it with JQuery ?
 a) I have download JQuery
 b) What File extension do i save the script as...

thanks