My current code that i use is this:
<script type="text/javascript">
$(document).ready(function(){
$('#on_holiday').trigger('click');
});
</script>
How ever, this only works when the 'ID' is 'on_holiday' within the input form. I need this to work when I have another element within the form - The current 'ID' is:
<a href="#" data-reveal-id="on_holiday" class="side_link">Test</a>
My problem is when ever I add the element 'ID' to this link, it messes up the data-reveal-id and its cause. I need some sort of jQuery code that can click this link without the need to put the 'ID' field in.
Many thanks in advance.