This method works well for setting the background size using inline css like so:
style="background-size:cover"
$(".tp-sliderSection .item").css('background-size', function(){
$(this).css('background-size',$(this).data("bg-size"));
});
<div data-bg-size="cover"></div>
However, I want to enhance it by adding more styles
$(".tp-sliderSection .item").css('background-size', function(){
$(this).css('background-size',$(this).data("bg-size"));
$(this).css('-webkit-background-size',$(this).data("bg-size"));
$(this).css('-moz-background-size',$(this).data("bg-size"));
});
The desired output style in CSS would be
style="background-size:cover; -webkit-background-size:cover; -moz-background-size:cover"
And so on