这是我的html
<input type="text" name="post[price]" id="productUpdate" class="test" disabled />
<div class="abs-locator" id="eventDrive"></div>
这是我的CSS
.abs-locator{
width: 17.8%;
position: absolute;
margin-top: -29px;
margin-left: 150px;
height: 27px;
}
单击隐藏输入框时我需要执行单击事件
这是我的js
$('#eventDrive').on('click', function() {
alert('test');
});
但是这里什么也没有发生。为什么会发生这种情况以及如何解决它