如何在点击时限制空字段和插入/更新/删除按钮上的弹出消息 [英] How to restrict popup message on empty filed and inset/update/delete button on click

查看:59
本文介绍了如何在点击时限制空字段和插入/更新/删除按钮上的弹出消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我试图限制弹出空文本框和网格内的按钮使用jquey。



我有什么试过:



Hi I have tried to restrict the popup on empty text box ,and buttons inside the grid using jquey.

What I have tried:

<pre>$(function () {
            var grid = document.getElementById('<%= gvDetails.ClientID%>');
            $('tr', grid).on('click', function () {
                $("#id").html($(".clsempid", $(this).closest("tr")).html());
                $("#name").html($(".clsempid1", $(this).closest("tr")).html());
                $("#department").html($(".clsempid2", $(this).closest("tr")).html());
                $("#age").html($(".clsempid3", $(this).closest("tr")).html());
                $("#sal").html($(".clsempid4", $(this).closest("tr")).html());
                $("#dialog").dialog({
                    title: "View Details",
                    buttons: {
                        Ok: function () {
                            $(this).dialog('close');
                        }
                    },
                     modal: true
                });
            });
        });

推荐答案

function (){
var grid = document .getElementById(' <%= gvDetails.ClientID%>');
(function () { var grid = document.getElementById('<%= gvDetails.ClientID%>');


' tr',grid).on(' click' function (){
('tr', grid).on('click', function () {


#id)。html(


这篇关于如何在点击时限制空字段和插入/更新/删除按钮上的弹出消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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