I have jQuery like:
jQuery(".forms_1_1").validate({
rules: {
inputname1: {
required: true,
},
or
inputname1: {
required: "Requested field!.",
},
Is it technically possible to add
1. PHP variable like $_SESSION and
2. Smarty variable into Javascript like {$global.variable1}
inputname1 is value for each variable (PHP, Smarty).
Need help how to include variable values into Javascript code.