how to assign the background image using javaScript? -


i want change background image using javascript. , taking below approach:

document.getelementbyid("country").style.backgroundimage="url('images/dropdown.jpg')"; 

but not working.

could please me in error?


Comments

Popular posts from this blog

python - Evaluating the next line in a For Loop while in the current iteration -

android - Hide fragments upon button click -

mongodb - How to keep track of users making Stripe Payments -