can i please get some help with jquery, this is the fiddle for what i'm working on, i want to make the image slide to left after i add the class pull-left of twitter-bootstrap after clicking on the image and i also want to make it a global function so that it will work for multiple images and content.
CODE:
$(document).ready(function () {
var showORhide = true;
$( ".team-img" ).click(function() {
if(showORhide == true){
$( "#team-center-img" ).removeClass("center-block");
$( ".team-img" ).addClass("pull-left");
$(".team-content").fadeIn(2000);
showORhide = false;
}else{
$( "#team-center-img" ).removeClass("pull-left");
$( ".team-img" ).addClass("center-block");
$(".team-content").hide();
showORhide = true;
}
});
});
Thank you in advance!