• Resolved MrCarlLister

    (@mrcarllister)


    I’m attempting to submit the form when a dropdown is selected with the following javascript:

    $(function() {
        $('#taxselect-1').change(function() {
           this.form.submit()
        });
    });

    However, it’s directing me away from the page and to a 404 error page. The url looks like it is trying to perform a typical search

    www.myurl.com/my-original-page/?s=58cc04853e&aformid=1431&taxo%5B0%5D%5Bname%5D=sector&taxo%5B0%5D%5Bterm%5D=awpqsftaxoall&taxo%5B1%5D%5Bname%5D=client&taxo%5B1%5D%5Bterm%5D=benfield-motor-group&taxo%5B2%5D%5Bname%5D=media-tags

    Any help would be appreciated.

    Thanks

    http://ww.wp.xz.cn/extend/plugins/ajax-wp-query-search-filter/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TC.K

    (@wp_dummy)

    You can’t submit the form directly, you have to passing to the ajax call.

    You can try this.

    $(function() {
        $('#taxselect-1').change(function() {
           passing_data($(this));
    	return false;
        });
    });
    Thread Starter MrCarlLister

    (@mrcarllister)

    Thanks, that worked perfectly!

    Cheers again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Submitting the form’ is closed to new replies.