I am trying to use the following font-awesome icon
我正在尝试使用以下font-awesome图标
as a delete icon next to items in a list on my page like this:
作为我页面上列表中项目旁边的删除图标,如下所示:
Item 1 delete-icon
Item 2 delete-icon
On click of one of these icons I need to run a Javascript function...
点击其中一个图标我需要运行一个Javascript函数...
What html element should I be wrapping the icon with? I noticed that when I use an anchor tag it turns blue and when I use a button it ends up being wrapped in a button. Are there any other options?