javascript - Wordpress Search & Filter Autosubmit -



javascript - Wordpress Search & Filter Autosubmit -

i'm working wordpress search & filter plugin , it's needed filtering though gallery , shop content! create selections submit every time dropdown changed, opposed having click submit button. (see link below).

in researching other posts, i've found solution implement theme's java script file:

$(".searchandfilter select").change(function() { $(".searchandfilter").submit(); });

i have set line woothemes canvas's 'general.js' file seems create no difference. still need click on submit button create changes. i've tried placing in various other js files i've had no luck. page in questions one:

http://richardrosenman.com/wordpress/portfolio/

does have insight i'm doing wrong? appreciate help i'm stuck (and of novice javascript!).

thanks!

jquery loaded jquery.noconflict(); hence cannot utilize $ selector (other libraries may using it), instead utilize jquery selector:

jquery(document).ready(function(){ jquery(".searchandfilter select").change(function() { jquery(".searchandfilter").submit(); }); });

i think can add together general.js end of file since see file loaded.

javascript jquery wordpress plugins

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -