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

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply