It's a mess. It's best to return false from the function or use e.preventDefault():
$(document).ready(function() { $('.update-link').click(function(e) { $(this).parent().hide() .next().next().fadeIn(500); e.preventDefault(); //same effect as 'return false' }); }); cheers, - ricardo On Jan 13, 7:51 pm, "Charlie Griefer" <charlie.grie...@gmail.com> wrote: > what about a return false; in the js method itself? > $(this).parent().next().next().fadeIn(500); > return false; > > hopefully somebody can elaborate, but i'd heard that using the javascript > "pseudo-protocol" isn't really... "proper"? > > > > On Tue, Jan 13, 2009 at 1:35 PM, Miloš Rašić <milos.ra...@gmail.com> wrote: > > Instead of href="##", put href="javascript: return false". It will work, > > but be warned that FF will generate a warning because return is not inside a > > function. > > > On Tue, Jan 13, 2009 at 10:06 PM, Rick Faircloth <r...@whitestonemedia.com > > > wrote: > > >> Thanks, Josh... > > >> You were almost perfect. I just needed to add one more .next to the > >> second line: > > >> $(this).parent().next().next().fadeIn(500); > > >> then it worked. > > >> Another question however, is how to keep the page from going back to the > >> top > >> every time the Update link is clicked. I've got two ## as the href > >> because of > >> ColdFusion need to have two. Is that the problem, or is there another > >> solution? > > >> <a class="update-link" href='##'>Update</a> > > >> That's the current code. Suggestions? > > >> Thanks, > > -- > I have failed as much as I have succeeded. But I love my life. I love my > wife. And I wish you my kind of success.