如何传递在jQuery中选择的复选框ID [英] how to pass checkbox id which are selected in jquery

查看:80
本文介绍了如何传递在jQuery中选择的复选框ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...

在aspx.cs页面中,我创建了包括复选框在内的动态字符串生成器.如果我选中那些复选框n单击一个按钮,它将在新页面中重定向...我将如何在jquery中获得选中的复选框ID ... ???

请帮帮我...

hi...

in aspx.cs page i have created dynamic string builder including checkbox. If i select those check box n click a button it will redirect in a new page...how will i get selected check box id in jquery...???

please help me out...

推荐答案

嗨 试试这个代码...
不要忘了包含jquery文件参考..


Hi Try this code...
Dont forget to include the jquery file reference..


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="JQuery.js" type="text/javascript"></script>

      <script type="text/javascript">


(function(){
(function () {


('#Button1').click(function(){ var ids ='';
('#Button1').click(function () { var ids = '';


这篇关于如何传递在jQuery中选择的复选框ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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