I am currently working on a prototype for an event management web application. That is my internship for this summer. Since it is a prototype, I am not developing it in Ruby on Rails or PHP/MySQL. I am currently using backbone.js which I am going to talk about in another entry later on.
For this web application, I wanted to put two forms on the same page. However, making two forms visible on the same page looks very messy and this is where jQuery comes into play. I wanted to have two forms; one for adding announcement while the other one is for adding events. You can view the demo here. For those of you that are clueless about how the demo works, just click on the green “+ add event” button. I got an email from someone because he doesn’t know how to work with the demo. *sigh*
I wanted to show only the first form by hiding the second form. However, the second form will show up only when the user clicks on a button and it will hide the first form and shows the second form instead.
Both the HTML and CSS is fairly simple. Since I am pretty sure that you can hack your own CSS, I am not going to put it up here. I’ll just put up the HTML. The jQuery code is short but it requires a bit of explanation.
