Auto Form Submit Problem
Auto Form Submit Problem
Hi guys,
I have a rather confusing problem.
To demonstrate I have setup 2 separate webpages : here and this one here
The form at top of both pages are filtering all the venues on the site by the postal code W1F 7HU.
The first form, on test/W1F 7HU, is being submitted automatically by my javascript code which is as follows:
- $(document).ready(
- function(){
- $path = window.location.pathname;
- $pathParts = $path.split('/');
- $postalCode = $pathParts[2].replace(' ', ' ');
-
- $('#edit-postal-code').val( $postalCode );
-
- $('body.section-test #edit-submit-ListVenues').click();
-
- }
- );
The second form on test2/W1F 7HU waits to be submitted by clicking on the apply button.
You will notice the effects are completely different. What I don't know is why.
Can anyone please help me out here ......... thanks.