Answers for "change img src css"

2

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');
Posted by: Guest on April-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language