search

Home  >  Q&A  >  body text

How to get the url address of the background image with jquery?

How does jquery get the url address of the background image?

仅有的幸福仅有的幸福2817 days ago744

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-19 10:43:23

    $("#target").css("background-image").split("\"")[1]

    Get the content first and then split the string to get it

    reply
    0
  • Cancelreply