jquery selector not working, why?

前端 未结 8 771
挽巷
挽巷 2021-01-18 09:29

I simply want to manipulate the elements within the #content div, but $(\'#content\') doesn\'t seem to work, and yet in other places it does! My relevant code i

8条回答
  •  误落风尘
    2021-01-18 09:44

    you can get id by by using .attr("id") function. Use this code: $("#content").attr("id");

提交回复
热议问题