用户选择一个选项时的弹出消息 [英] Popup message when user select a choice

查看:83
本文介绍了用户选择一个选项时的弹出消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个新的自定义列表,其中将包含一系列下拉的是/否选择.如果可能的话,有人要求如果某人未选中,则会弹出一个消息框,提示有关选择否的消息.

I'm building a new custom list which will have a series of drop down yes/no choices. It has been requested if possible that if someone checks no that a message box pops up with a message about choosing no.

我进行了快速搜索,发现在表单加载时谈论的文章发送了一条消息,但没有特定于选择否的动作.

I did a quick search and found articles that talked about at form load send a message, but nothing specific to the action of choosing no.

我在想您可以采用的另一种方法是自定义提交"按钮,以便查询值,如果它检测到是/否"列中的任何一个都设置为否",则弹出一个窗口.

I was thinking the other way you could do it is customize the submit button so it queries the values and if it detects any of the yes/no columns are set to no then do a popup.

从编码的角度来看,尽管我不确定如何做到这一点,并且希望能提供帮助.

From a coding standpoint though I'm not sure how to do this and would appreciate any assistance possible.

A&#43 ;、网络+ ;、安全性+,Microsoft MCP,MCDST,MCSE 2003,MCSA 2008

A+, Network+, Security+, Microsoft MCP, MCDST, MCSE 2003, MCSA 2008

推荐答案

将以下代码添加到newform.aspx页的内容编辑器Web部件中.

Add the following code into a content editor web part in the newform.aspx page.

<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript">


(function(){
(function () {


("select [id
("select[id


这篇关于用户选择一个选项时的弹出消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆