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
 
PREVIOUS NEXT
Tagged: #set #background #image #URL #jQuery
ADD COMMENT
Topic
Name
7+6 =