Sorry, I have searched for this and cannot seem to get anywhere, tried so many variations:
$("#shopipadopen").click(function () {
$(".newshopipad").height(270);
return false;
}, {
$(".newshopipad").height(24);
return false;
});
When the item is clicked, do something, if it clicked again, do something else, I am sure it was that above or this (without using if else)
$("#shopipadopen").click(function () {
$(".newshopipad").height(270);
return false;
}, function (){
$(".newshopipad").height(24);
return false;
});
1 Answer