Archive for October 2013

Get Dynamic Textbox and checkbox value in jquery



Get Dynamic Textbox and checkbox value in jquery:


<script language="javascript" type="text/javascript">


$(document).ready(function(){

    $("#btnupdateall").click(function(){
   
         var counter = $('.totaldemandtextbox').length;
         var collectionamt_counter = $('.collectionamtcount').length;
         var attendance=$('.attendancecount').length;
         var msg = '';
         var msgchk='';
         var msgattendance='';
         for(j=0;j<collectionamt_counter;j++)
         {
            msgchk+=""+ $("input[id*='chkcollection"+j+"']:checked").length+","+"";
         }
         for(k=0;k<attendance;k++)
         {
            msgattendance+=""+ $("input[id*='chkaddentance"+k+"']:checked").length+","+"";
         }
    for(i=0; i<counter; i++)
    {
           msg += "" + $('#txttotaldemand' + i).val()+","+"";
    }
   
    alert(msgchk);
    alert(msgattendance);
    alert(msg);
    });
   
});
</script>
Friday, October 4, 2013
Posted by ஆனந்த் சதாசிவம்

Popular Post

Blogger templates

Labels

Search Box

Follow us on Facebook

- Copyright © .net -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -