Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change img src css

// You cannot do it with CSS alone
// You can with JS

element.style.src = "someImage.jpg";

// Or with jQuery
$('some-element').attr('src', 'someImage.jpg');
 
PREVIOUS NEXT
Tagged: #change #img #src #css
ADD COMMENT
Topic
Name
3+7 =