I'd like to create a submission form that consists of multiple steps. I tried to use jQuery Steps (http://www.jquery-steps.com/) for that and I've loaded the necessary JS and CSS files in my Joomla Template. However, jQuery Steps requires some code to initiate to be placed within the html's <body> (see http://www.jquery-steps.com/Documentation#init - its very easy in general).
<script>
$("#wizard").steps();
</script>
When I put it at the beginning of my Smarty submission form override template (between {literal}-tags of course), the code is placed after the opening <form> tag in the generated webpage. I'm not sure whether that's the reason, but I haven't managed to get the script working.
What way do you recommend to use Javascript inside the submission form template override?
Thanks in advance!
Best regards,
Sebastian