I have two .click methods and i'm not sure why they will only work in the absence of each other.
The code:
1 Responsible for sliding and hiding content
var clickAction = function(){
settings.tabHandle.click(function(event){
if (obj.hasClass('open')) {
slideIn();
} else {
slideOut();
}
});
clickScreenToClose();
};
2 Responsible for selectively reloading a div
$(
function(){
var jContent = $( "#simplecart_items" );
$( "a" ).click(
function( objEvent ){
var jLink = $( this );
jContent.load( jLink.attr( "href" ) );
return( false );
}
);
}
);
Any ideas?