Try
$(document).ready(function() {
$("#download").bind("click",function(){
$("#donate").toggle();
});
});
Blair
On 1/6/07, Hannah Gray <[EMAIL PROTECTED]> wrote:
I'm making a download button which links to a zip file but also needs to
show a hidden div when clicked. Adding the toggle() or click() seems to
keep the href= link action from bubbling. I guess this is normally how I
want it to behave... except in this case. Is there a way to work around
this?
Thanks!
my code is below.
$(document).ready(function() {
$("#download").toggle(function() {
$("#donate").show('slow');
}, function() {
$("#donate").hide('fast');
});
});
------------------------
Hannah Gray
www.geekgrl.net
[EMAIL PROTECTED]
------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/