I have a form user fill on my website. Actually there are have 2 separate different forms, Form A and Form B.
I made a simple img button and assigned a simple slidetoggle onclick event like this;
When user presses this button, it slide opens the first form. The problem is, usually there is only 1 or 2 fields visible in the viewport...because people tend to click on a button as soon as they see it.
So the solution would be to make the viewport jump to the (anchor?) first field of the form which would make the form display across the entire viewport.
Any solutions for this?
I made a simple img button and assigned a simple slidetoggle onclick event like this;
Code:
<img src="bt.jpg" alt="" width="150" height="100" style="cursor:pointer;" onclick="$('#aform').slideToggle('slow');" />
When user presses this button, it slide opens the first form. The problem is, usually there is only 1 or 2 fields visible in the viewport...because people tend to click on a button as soon as they see it.
So the solution would be to make the viewport jump to the (anchor?) first field of the form which would make the form display across the entire viewport.
Any solutions for this?