Reputation: 566
I am toggling an element out and back into screen. It works nicely but not in Explorer. How do I make it also explorer compatible. Can you please help?
See my example here:
/*START makes text-over-photo div collapse and expand horizontally*/
$(document).ready(function() {
$("#togglebutton").click(function() {
var $container = $('#text-over-photo-container');
$container.toggleClass('hide2');
});
});
$('#togglebutton').click(function() {
$(this).toggleClass('glyphicon glyphicon-remove');
$(this).toggleClass('glyphicon glyphicon-plus');
});
Upvotes: 1
Views: 349