javascript - jQuery .toggle() equivalent in Google Closure -


i rewriting of javascript files rid of jquery , use google closure instead. have got date picker user can toggle show or hide. @ moment following code being used:

if (this.open == open)     return false;  $(this.eldatepicker).toggle(open); this.open = open; return true; 

where el.datepicker element date picker inside, in case div.

i looking way rewrite piece of code change jquery google closure. idea's how should possible?

you should able do

goog.style.showelement(this.eldatepicker, !goog.style.iselementshown(this.eldatepicker)); 

source: google closure style.js doc


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -