function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neil KimNeil Kim 

Mixing of jQuery, ActionFunction

Hi all.
I'm working for pass variable from VF to another VF.

Here is my code.
First VF
<apex:form>
<apex:actionFunction name="setParam" action="{!passParam}" reRender="resultPanel" status="myStatus">
	<apex:param name="firstparam" assignTo="{!s1}" value=""/>
</apex:actionFunction>
</apex:form>
First VF jquery
$(".select")
    .click(function(event) {
    	alert($(this).val()),
    	setParam($(this).val());
    })
    ;
and then, I have <a> tag for moving to next page like this
<a href="/apex/page2"><div  class="col-xs-6   col-md-4   text-center"><b> Next ></b></div ></a>

Finally, second VF
<script>
    window.onload = function(){
    	alert({!s1});
    	
    }
</script>


However, currently variable s1 is not passed.
alert show me empty box.

Could you please guide me about the issue?

Thanks in advance.