I have a simple form that can be represented outside an element through a little jQuery Script.
<script type="text/javascript"> $(document).ready(function() { $('#mybutton').click(function(){ $('#myform').attr('action', '/url/to/form').submit(); }); }); </script>
The button is a regular link.
<a href="javascript:void(0);" id="mybutton">Just a normal link</a>
The form is just a normal form.
<form id="myform" action="/url/to/form"> .... <input type="submit" value="Search"> </form>
This works fine in IE, FF, Chrome, and Safari, but not for Opera. In Opera, it is always redirected to my home page, not the form URL. I tried to set the action in a script (as indicated above) and usually in the form action parameter, but no luck. I am running the latest jQuery and Opera.
Please, help
Edit: I also use jQuery UI to handle some content and interactions
source share