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

prathK’s picture

Assigned: Unassigned » prathK
Status: Active » Fixed

Fixed 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Added clarification.