Hey Klaus. Do you think you could post the new code that includes everyone's
final recommendations?
Karl Swedberg-2 wrote:
>
>
> Ah! That is beautiful, Sam! Thanks!
>
> You know, sometimes I make things much harder for myself than they
> have to be, just because I fear the browser (IE in p
Wow. I completely understand. You've opened my eyes in more ways than one. I
hope my newbie question has resulted in an education for all of us.
Incredible insight Klaus. YOU ARE THE MAN!
Klaus Hartl wrote:
>
> hcabbos schrieb:
>> Understood. But all this started with me aski
LOL. I'm dying over here :) This has been my week.
Kenneth-35 wrote:
>
> I believe because: "So in the case of a link that isn't going anywhere but
> is just meant to toggle a div, what's your recommendation?"
>
> We've almost come full-circle in the discussion now :)
>
>
Understood. But all this started with me asking whether to use inline # or
javascript:; for activating a toggle. So my conclusion is if Progressive
Enhancement is what I'm after, I'll use this method:
$(document).ready(function(){
$("a#sliderExec").bind('click', function() {
malsup wrote:
>
> I haven't read this whole thread, but I don't see why you need this line:
>
> $("a#sliderExec").attr({ href: "javascript:;"});
>
> You're handling the click event anyway, so why update the href?
>
Because without this my link isn't showing up as a link (with the styles
ap
hcabbos wrote:
>
> The following works but is it correct based on:
>
> 1) the unobtrusive scripting paradigm
>
Duh...answering my own question, the way to address this would be to link to
a page that contained the content of the toggling div. That way if
javascript were turned
Thanks to everyone for really helpful insights into my question. I've
witnessed '#' and 'javascript:;' being used in JQuery examples, so I was
curious as to a recommended method. I'm a newbie to JQuery. With that said,
Kenneth-35 makes a good point...
"IE doesn't treat 's as links unless they ha
What's the best way to apply a behavior to an anchor tag?
my text
-- or --
my text
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/