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:

<script type="text/javascript">
$(document).ready(function(){
        $("a#sliderExec").bind('click', function() { 
                $("div#myElement").toggle("slow");
                return false;
        });
});
</script>

&lt;a id="sliderExec" href="toggledDivContent.html">my text</a&gt;


If I say the hell with Progressive Enhancement, then I guess this will do:

<script type="text/javascript">
$(document).ready(function(){
        $("a#sliderExec").bind('click', function() { 
                $("div#myElement").toggle("slow");
                return false;
        });
});
</script>

&lt;a id="sliderExec" href="javascript:;">my text</a&gt;



If anyone thinks differently, please speak up now :) I have a headache.
Again, thanks for everyone's assistance.


malsup wrote:
> 
>> Because without this my link isn't showing up as a link (with the styles
>> applied in my style sheet).
> 
> Why doesn't href have a value to start with?
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/--or-javascript%3A--tf3241319.html#a9016317
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to