I had a situation that, I need to add a dynamic image to a background to a table.
To do that I had placed a CSS class to the table like below in the view file.
<Table class="tblBackground">
Now in the Controler file, I used below Jquery CSS trick to place an image.
$(".tblBackground").css("background", "url("dynamicImageURL") no-repeat");
Thanks and Regards,
Ravi Varma Indukuri