(new edit) If you say duplicate of another question, can you give me a solution of my question, I cant solve my problem in that question
since my previous question had marked as duplicate question, but there is different, that post cannot solve my problem, so I re-post my question here. If you think you can solve my problem via the post, please write the answer here. Thanks!
In my .html
<header class="bg-image">
...
<style>
.bg-image:before {
...
background: #333 url("1.jpg") no-repeat top center;
}
</style>
</header>
and now I want to change the "1.jpg" to "2.jpg" using jQuery but I cannot select ".bg-image:before" to change it
In case I must use the above style code in html to do an effect How can I change to "2.jpg" using jQuery?