script error fixed in cashbook
This commit is contained in:
parent
0ac549f276
commit
bbb8afe7ac
@ -124,11 +124,11 @@ $(document).ready(function(){
|
|||||||
// alert('new');
|
// alert('new');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
alert($('#cashbooktable tbody').find('td:empty').length);
|
// alert($('#cashbooktable tbody').find('td:empty').length);
|
||||||
if( $('#cashbooktable tbody').find('td:empty').length ) {
|
// if( $('#cashbooktable tbody').find('td:empty').length ) {
|
||||||
alert("at least one <td> is empty"):
|
// alert("at least one <td> is empty"):
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -144,11 +144,12 @@ $('#Add').click(function(){
|
|||||||
//alert('inside if');
|
//alert('inside if');
|
||||||
var temp = index;
|
var temp = index;
|
||||||
var Acctype = $("#accounttype:checked").val() ;
|
var Acctype = $("#accounttype:checked").val() ;
|
||||||
var Acccode = $('#accountcode').val();
|
var Acode = $('#accountcode').val();
|
||||||
|
var Acccode = Acode.replace(/ /g,'');
|
||||||
var Accname = $('#accountname').val();
|
var Accname = $('#accountname').val();
|
||||||
var Accdesc = $('#description').val();
|
var Accdesc = $('#description').val();
|
||||||
var Status = $('#accountstate').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
|
//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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user