I have a ruby varibale
$text = "abcd"
I have some condition inside my jquery according to which this text should change.
This is so far i have tried.. but no luck.
$("#xyz").click(function() {
new_text = 'efgh';
"<% $text = new_text %>"
}
Is this possible. Thanks in advance.