Apex 4 Click事件帮助中的jQuery [英] Jquery in apex 4 Click event help
本文介绍了Apex 4 Click事件帮助中的jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的顶点应用程序中有一个图像,其ID标签为Submit_button.我想在用户尝试单击此图像时显示警报,但是由于某种原因什么也没有发生.在页面的标题中,我有此代码
I have an image that is in my apex application with the id tag of submit_button. I want to display an alert when the user tries to click this image but for some reason nothing is happening. In my header on the page I have this code
<script type="text/javascript">
$(document).ready(function() {
$('#submit_button').click(function) {
alert('hi');
}
});
</script>
有什么想法吗?
推荐答案
我不知道为什么它不起作用(我也尝试过,这对我也不起作用),但是这样做很简单通过具有以下属性的动态操作:
I don't know why that doesn't work (it doesn't work for me either, I just tried), but it is very simple to do via a dynamic action with the following properties:
- 事件=点击
- 选择类型= DOM对象
- DOM对象=提交按钮
- "True"操作=执行Javascript代码
- 页面加载时触发=(未选中)
- 代码= alert('hi');
这篇关于Apex 4 Click事件帮助中的jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文