Closed geronimoooooooo closed 8 years ago
Not sure, what you mean by that. You can definitely pass variable values, after all it is javascript.
However, in your example, you seem to have double quotes around $('string_variable').val()
. Try
$.toast({
text : $('your_selector').val()
});
Or
$.toast($('your_selector').val());
Hi, Is it possible to display the content of a string variable as text in the toast?
var string_variable = "this is my dynamic text";
$.toast({ text : " $('string_variable').val()" }
greetings