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.

here jsfiddle includes fade.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -