Forums Forums Search Search Results for 'input[value'

Viewing 2 results - 11 through 12 (of 12 total)
  • Author
    Search Results
  • #23222

    Anonymous
    Inactive

    Hi,

    I have search and filter pro, it’s a wonderful plugin!

    I need to select the filter from the beginning with the value of ‘query var’ from another page.

    I’ve done this:

    
    $value = get_query_var('year');
    ....
    <script>
    $('input[value="<?php echo $value ; ?>"]').click();
    </script>
    

    But this method is far from ideal because first are charged all items then with click event the filter is activated.

    Is there a better method?

    Thanks

    #21609

    Anonymous
    Inactive

    Tnx for the quick reply, I appreciate that.

    i was probably not clear. The checkbox is checked now but the form is not updated with the results. When i hit the submit button, the results are fine. However, I would like to see the results immediately like any other checkboxes/input fields.

    I’ve tried the following:

    (“input[value=’myCheckbox’]”).prop(‘checked’, ‘checked’);
    $(‘input[type=submit]’).click();

    but the the value of the submit is not reflected in the results. It looks like only the submit is processed.

Viewing 2 results - 11 through 12 (of 12 total)