can we use more than one click event in the Jquery as
$(document).ready(function(){
$('#button').click(function(){
...........click(function(){
...........click(function(){
});
$(this).hide();
});
});
pls help me
i wrap the code due to less space for the code
$('#togglebutton1').click(function() {
if ($(this).is(':visible')){
$('#bio>div,#heading2,#heading3 ').hide();
$('#bio>div:first').show();
$('p:first').toggle(
function() {
$(this).animate({ 'height': '+=15px' }, '1000', 'linear');
},
function() {
$(this).animate({ 'height': '-=15px' }, '1000', 'swing');
}
);
$(this).val('ShowImage');
}else {
$(' #bio > div,#heading2,#heading3 ').show();
$(this).val('HideImage');
}
});
$('#bio h3').click(function() {
$(this).next().animate({ 'height': 'toggle' }, 'slow', 'easeOutBounce'); });
});
click()s inside ` .click() ` ? anything I missed?