I\'m developing smartphone hybrid applications.
I\'m trying to hide/show a When I
slideDown
/slideUp
.
I would suggest using on()
instead of bind()
And since youre doing this:
var btnMenuDyn = $('a.btnMenuDyn')
btnMenuDyn
is a jquery dom element, so change this:
if ($(menuDyn).hasClass("menuDynHide"))
to this
if (menuDyn.hasClass("menuDynHide"))
And preferably declare jquery dom elements like this:
var $btnMenuDyn = $('a.btnMenuDyn')