how to make select element to "jump back" to default value (D7)
hi, I have an select element calling ajax. I want the select element to "jump" back to "- None selected -", After a selection was made (the select element is used to add features to a themed table). How can this be done? Marco
You can either have the JS that handles the response set the input value post-success or have the replacement wrapper in the DOM include the select box (probably easiest via form API #ajax parameter, especially in D7). Look at http://drupal.org/project/examples for hints. Carl Wiedemann Website design and development consulting carl.wiedemann@gmail.com | skype: c4rlww On Tue, Aug 30, 2011 at 7:44 AM, Marco Lechner - in medias res < lechner@webgis.de> wrote:
hi, I have an select element calling ajax. I want the select element to "jump" back to "- None selected -", After a selection was made (the select element is used to add features to a themed table). How can this be done?
Marco -- [ Drupal support list | http://lists.drupal.org/ ]
participants (2)
-
Carl Wiedemann -
Marco Lechner - in medias res