我可以将图像放在跨度内并使用 jQuery 为跨度提供点击事件吗?在这里它在我的代码中不起作用有任何想法。
<span id="removeNewTime" class="removeTime">
<img src="Images/close button.png" alt="close" />
</span>
jQuery代码
<script>
$(document).ready(function(){
$(".removeTime").click(function(){
alert("hello");
});
});
</script>