I'm trying to get a value from text field and pass it to ejsso that it can render the variable and display it on a fly. I'm using jquery steps and on first step i enter my name. I would want to display that name on the second step.
Here is the javascript code:
var form = $("#form").show();
$("#form").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "slideLeft",
onStepChanged: function (event, currentIndex, priorIndex){
if (priorIndex == 1)
{
fname = $('#fname').val();
}
});
I would want this fname to be displayed on next step or any view. So any help on passing the variable from javascript logic to ejs would be highly valuable.