How to get ID of clicked element with jQuery

后端 未结 5 1929
花落未央
花落未央 2020-12-08 18:38

I have the following html:

link
link         


        
5条回答
  •  醉梦人生
    2020-12-08 19:16

    Your id will be passed through as #1, #2 etc. However, # is not valid as an ID (CSS selectors prefix IDs with #).

提交回复
热议问题