使用jQuery在GridView中进行验证 [英] Validations in GridView using jQuery

查看:82
本文介绍了使用jQuery在GridView中进行验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Gridview中,我有ProductID,ProductName,Select,Quantity等列。 ProductID和ProductName是asp.net标签,Select是asp.net复选框,Quantity是asp.net tectbox。当我选中复选框1时,如何编写jQuery代码应该出现在gridview中的那个特定行文本框中。 .. ??

In a Gridview I have columns like ProductID, ProductName, Select, Quantity. ProductID and ProductName are asp.net labels, Select is a asp.net checkbox and Quantity is a asp.net tectbox. How to write a jQuery Code when I check the checkbox '1' should come in a that perticular row textbox in a gridview. ..??

推荐答案

function validate() {
   
    var i = 1;
    

<pre lang="cs">


nc( #grdsample tr)。每个( function(){
if (i!= 1 ){
var id =
nc("#grdsample tr").each(function () { if (i != 1) { var id =


nc( this )。find( input [type ='hidden']:first)。val();
var name =
nc(this).find("input[type='hidden']:first").val(); var name =


这篇关于使用jQuery在GridView中进行验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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