jQuery - Animate height not working as expected -


Does not it seem to work, any thoughts?

Javascript:

  $ ('articleslide'). Each (function () {var current = $ (this); current .attr ("box_h", current.height ());}); $ (".syslides"). CSS ("height", "100px"); $ ("ShowHide"). Html ('& lt; a href = "#" & gt; much & lt; / a & gt;'); ATR ("box_H") + "PX"; $ (This) .closest ("articleSlide"). Atom ("article."). ({"Height": open_height}, {duration: "slow"})}}   

HTML:

  & lt; Div class = "articleslide" & gt; & Lt ;! - Too many lessons - & gt; & Lt; / Div & gt; & Lt; Div class = "showHide" & gt; & Lt; / Div & gt;    

Try instead:

  $ ('.articleSlide'). Each (function () {var current = $ (this); current.atr ("box_h", current.height ());}); $ (".syslides"). CSS ("height", "100px"); $ ("ShowHide"). Html ('& lt; a href = "#" & gt; much & lt; / a & gt;'); ARTR ("box_h") + "px"; $ (This). Parent (). Parent (). Click (function.) (Var. Open_height = $ (". Children" ('.sclslides') .met ({"height": open_heit}, "slow");});   

You have to meet the grandparents of the engadget tag so that you find the element you want to manipulate

works like a magic ^ _ ^

Comments