Drupal's JavaScript principles state "All pages should be perfectly functional without scripts." The current form only works with JavaScript, though the actual functionality doesn't require JavaScript. With a submit button and submit handler, it could work without JavaScript. JavaScript can still be used to enhance the interface (e.g. no page reload), but shouldn't be required for basic functionality.
Comments
Comment #1
prathK commentedFixed according to Drupal's Javascript principles. I feel its better not to use javascript as we are not fetching data from database.
Committed the same in new version 2.x
Comment #2.0
(not verified) commentedAdded clarification.