Автосабмит раскрытых фильтров Drupal6

  1. // Wait until document fully loaded
  2. jQuery(document).ready(function($) {
  3. // Check if the filter exists
  4. if($('.views-exposed-form select').length){
  5. // Your change function
  6. $('.views-exposed-form select').change(function() {
  7. // Submit the form
  8. $(this).parents('form').submit();
  9. });
  10. }
  11. });
Russian
Категория: 
The code has been tested and works

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Target Image