From bbb8afe7ac06a8113beea5c57993a0f6606cab04 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Fri, 16 Feb 2018 19:53:30 +0530 Subject: [PATCH] script error fixed in cashbook --- application/views/cashbooklisting.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/application/views/cashbooklisting.php b/application/views/cashbooklisting.php index 6ec3e004..35af8ea0 100755 --- a/application/views/cashbooklisting.php +++ b/application/views/cashbooklisting.php @@ -124,11 +124,11 @@ $(document).ready(function(){ // alert('new'); // } -alert($('#cashbooktable tbody').find('td:empty').length); -if( $('#cashbooktable tbody').find('td:empty').length ) { - alert("at least one is empty"): +// alert($('#cashbooktable tbody').find('td:empty').length); +// if( $('#cashbooktable tbody').find('td:empty').length ) { +// alert("at least one is empty"): -} +// } }); @@ -144,11 +144,12 @@ $('#Add').click(function(){ //alert('inside if'); var temp = index; var Acctype = $("#accounttype:checked").val() ; - var Acccode = $('#accountcode').val(); + var Acode = $('#accountcode').val(); + var Acccode = Acode.replace(/ /g,''); var Accname = $('#accountname').val(); var Accdesc = $('#description').val(); var Status = $('#accountstate').val(); - var localflag = 0; + var localflag = 0; //if(Acctype != '' || Accname != '' || Acccode != '' )https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwjnwuzq4MXXAhVIQI8KHcWmBUoQFggqMAA&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F9127847%2Fdocument-getelementbyid-focus-returning-undefined&usg=AOvVaw20BMY_C7k6ShhmOz0Vmzs8