Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set background image URL jQuery

jQuery('selector').css('background-image'); // gets the image URL
jQuery('selector').css('background-image', 'path/to/image.jpg'); // sets the image URL
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #background #image #URL #jQuery
ADD COMMENT
Topic
Name
2+6 =