[jQuery] Re: How to make hyperlink failed

2009-02-08 Thread David .Wu
yup, that's what I want, thank you very much. On 2月9日, 下午3時27分, Geuis wrote: > I think you're asking, how do you prevent a link from doing anything > when the browser has javascript enabled. > > $('#xxx').click(function(){ > //your stuff > return false; > > } > > On Feb 8, 11:22 pm, "David .Wu"

[jQuery] Re: How to make hyperlink failed

2009-02-08 Thread Geuis
I think you're asking, how do you prevent a link from doing anything when the browser has javascript enabled. $('#xxx').click(function(){ //your stuff return false; } On Feb 8, 11:22 pm, "David .Wu" wrote: > If I got a hyperlink http://xxx.com"; id="xxx">xxx > > $(function() { >         $('#xxx