Need your help. I’m trying to create a page that has two UI states. want I want is a function that when called toggles between them?
hopefully that’s clear enough for some guidance.
Thanks
function toggleUIChange () {
jquery stuff for inital state, {
jquery stuff for other state}
}
jquery has a method
.toggle()that can be used for hiding and showing elements on the page. . . You can also use.toggle()with custom callback functions for animation or really, anything else. Look here