Robert Granlund
asked on
jQuery Syntax
I have a question about jQuery Syntax. I am using a CMS that has a tag {row_id} that, of course echos out the row id. In my jQuery, I am referencing the row ID. In my code I have this:
var formUpdate_{row_id} = function() {
in In my development IED this line gives me an error. Is there a way to escape this and still have it work so the error is gone?
You could use eval().
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
orOpen in new window
That should be valid code for the IDE and with a bit of luck your CMS does the replace regardless of the fact that the tag is now in a javascript literal.