as extension previous question , answer (https://stackoverflow.com/a/31327605/1582712), trying modulate javascript code utilize same double click functionality across other classes.
my code in following jfiddle
if try double clicking h3 or table, don't seem come back. believe reason because $el variable not being registered and/or remembered properly.
i have tried few things, such returning $el variable , reusing it. tried using array $el[search] each unique. none worked. i'm little stumped, think subtle javascript memory issue here!
fyi: if run jfiddle you'll see double clicking works on , on again. hoping same effect, generalized html class/id in dom.
the problem not hiding elements removing them dom (line 25 in jsfiddle). after removing them calling hide (line 17) , toggle (line 18) elements not exist hide or toggle anymore. can resolve problem removing $rowstohide.hide(); (line 17) , $rowstohide.remove(); (line 25). see updated jsfiddle. hide elements not remove them dom.
Comments
Post a Comment