Looking to create a custom style class within JavaScript tags.
The class would look something like this:
#file-ok {
background-image: url(<?php echo json.get('filename'); ?>);
}
Essentially, the value returned from the PHP file (json.get('filename')) will be used as the background image name.
Is this achievable?