Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get 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 www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #background #image #URL #jQuery
ADD COMMENT
Topic
Name
7+2 =