javascript - Simple AJAX: how to swap out a div that contains a form? -
please refer below jsfiddle code snippet: http://jsfiddle.net/jlxs5/3/
when user clicks "here", want swap out div contains signup form div contains login form (currently login form display:none) quick fade. how go doing this? i'm total novice @ ajax, , i'm having trouble making headway in replacing div here.
thanks! ringo
to people suggesting jquery just show/hide 2 elements...seriously?.
however, since op wants elements fade in , out, , jquery has these functions built-in (fadein() , fadeout()), useful. can done pretty plain old javascript. mentioned, ajax not needed @ all.
Comments
Post a Comment