[jQuery] run javascript code within remote:jQuery.format()
jquery validate plugin
Is it possible to run javascript code within remote:jQuery.format().
this works
remote: jQuery.format("test" + alert('test'))
but this doesn't work. error in firefox/firebug: syntax error
remote: jQuery.format("test" + var x = 'test')
this works partialy
remote: jQuery.format("test" +" var x='test'")
displays as test var x = 'test'
Am i missing something or is it just not possible?
If possible what would be the correct syntax?