Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

using jquery loop table and get mark checkbox ID

$
0
0

Hi,

I am using 2 table ,which is based on radio button mark like

Problem:

I want to get the ID of selected checkbox, it could be 1 record checked or check all /multiple record

Note:

using 2 table 1 table name tableA and other table name tableB 

I am using this code

            $(tablename + ' tr').filter(':has(:checkbox:checked)').each(function () {
                alert(this.id);
                if ($(tablename).find('input[type="checkbox"]:checked')) {
                    if (this.id != chkheaderid) {
                            id_ += this.id.split('_')[1] + ';';
                    }
                    flag = true;
                }
            });

Problem:

above code  working fine with multiple selection not working on single selecteion/checked ..

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>