i failed to pass the value to my script, anyone can tell me what is my mistake ?
output
Microsoft JScript runtime error: ‘$’ is undefined
my javascript function
function setSessionValue(key, value) {
$.post('setSession.aspx?key=' + key + '&value=' + value);
}
button to call for function
asp:LinkButton ID="lnkname" runat="server" Text='<%#Eval("movieTitle") %>' Width='500px'
CommandName="cmdLink" PostBackUrl='~/videotest.aspx'`
OnClientClick="setSessionValue('itemID','3345');"
have you included jquery js files in your page?