I\'m having some trouble with developing an expand-shrink toggle div.
My goal is to click the div and make it bigger, clicking it again and get it back to the original h
toggle() (Event) event is deprecated in jQuery 1.8 and removed in jQuery 1.9.
Current .toggle() function changes the state of the element.
$(document).ready(function () { $(".noticia").click(function(){ $(this).css('height', $(this).css('height') == "420px" ? "600px" : "420px"); }); });