Subversion Repositories SmartDukaan

Rev

Rev 29794 | Rev 29884 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29794 Rev 29841
Line 641... Line 641...
641
	$(document).on('click', '.addlegalKycdetail', function() {
641
	$(document).on('click', '.addlegalKycdetail', function() {
642
		var row = $(this).closest("tr");
642
		var row = $(this).closest("tr");
643
 
643
 
644
		console.log(row);
644
		console.log(row);
645
 
645
 
646
		var id = $(row).find("td:eq(1)").text();
646
		var id = $(row).find("td:eq(2)").text();
647
		var businessType = $(row).find("td:eq(2) option:selected").val();
647
		var businessType = $(row).find("td:eq(3) option:selected").val();
648
		var firstName = $(row).find("td:eq(3) input[type='text']").val();
648
		var firstName = $(row).find("td:eq(4) input[type='text']").val();
649
		var middleName = $(row).find("td:eq(4) input[type='text']").val();
649
		var middleName = $(row).find("td:eq(5) input[type='text']").val();
650
		var lastName = $(row).find("td:eq(5) input[type='text']").val();
650
		var lastName = $(row).find("td:eq(6) input[type='text']").val();
651
 
651
 
652
		var fatherName = $(row).find("td:eq(6) input[type='text']").val();
652
		var fatherName = $(row).find("td:eq(7) input[type='text']").val();
653
 
653
 
654
		var dob = $(row).find("td:eq(7) input[type='date']").val();
654
		var dob = $(row).find("td:eq(8) input[type='date']").val();
655
 
655
 
656
		if (dob != "") {
656
		if (dob != "") {
657
 
657
 
658
			dob = dob + "T00:00:00";
658
			dob = dob + "T00:00:00";
659
		}
659
		}
660
 
660
 
661
		var gender = $(row).find("td:eq(8) option:selected").val();
661
		var gender = $(row).find("td:eq(9) option:selected").val();
662
		var maritalStatus = $(row).find("td:eq(9) option:selected").val();
662
		var maritalStatus = $(row).find("td:eq(10) option:selected").val();
663
 
663
 
664
		var email = $(row).find("td:eq(10) input[type='text']").val();
664
		var email = $(row).find("td:eq(11) input[type='text']").val();
665
 
665
 
666
		var mobile = $(row).find("td:eq(11) input[type='text']").val();
666
		var mobile = $(row).find("td:eq(12) input[type='text']").val();
667
		var pan = $(row).find("td:eq(12) input[type='text']").val();
667
		var pan = $(row).find("td:eq(13) input[type='text']").val();
668
 
668
 
669
 
669
 
670
		var pandocId = $(row).find(".pandoc input[type=hidden]").val();
670
		var pandocId = $(row).find(".pandoc input[type=hidden]").val();
671
 
671
 
672
		var poaNO = $(row).find("td:eq(14) input[type='text']").val();
672
		var poaNO = $(row).find("td:eq(15) input[type='text']").val();
673
		var poaType = $(row).find("td:eq(15) option:selected").val();
673
		var poaType = $(row).find("td:eq(16) option:selected").val();
674
 
674
 
675
		var paoFrontd = $(row).find(".paof input[type=hidden]").val();
675
		var paoFrontd = $(row).find(".paof input[type=hidden]").val();
676
		var paoBackId = $(row).find(".paob input[type=hidden]").val();
676
		var paoBackId = $(row).find(".paob input[type=hidden]").val();
677
 
677
 
678
		var address1 = $(row).find("td:eq(18) input[type='text']").val();
678
		var address1 = $(row).find("td:eq(19) input[type='text']").val();
679
 
679
 
680
		var address2 = $(row).find("td:eq(19) input[type='text']").val();
680
		var address2 = $(row).find("td:eq(20) input[type='text']").val();
681
 
681
 
682
		var address3 = $(row).find("td:eq(20) input[type='text']").val();
682
		var address3 = $(row).find("td:eq(21) input[type='text']").val();
683
 
683
 
684
		var city = $(row).find("td:eq(21) input[type='text']").val();
684
		var city = $(row).find("td:eq(22) input[type='text']").val();
685
 
685
 
686
 
686
 
687
		var state = $(row).find("td:eq(22) input[type='text']").val();
687
		var state = $(row).find("td:eq(23) input[type='text']").val();
688
 
688
 
689
		var pincode = $(row).find("td:eq(23) input[type='text']").val();
689
		var pincode = $(row).find("td:eq(24) input[type='text']").val();
690
 
690
 
691
 
691
 
692
 
692
 
693
		console.log(city)
693
		console.log(city)
694
		if (dob === "") {
694
		if (dob === "") {