15,920,383 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13751016 (Top 12 by date)
Member 13751016
2-Dec-22 3:29am
View
//here is delete button
//here is the script for unit_price * quantity=total_price // this code work fine
function CalculateTotal(ele) {
var unit_price = $(ele).closest('tr').find('.unit_price').val();
var quantity = $(ele).closest('tr').find('.quantity').val();
unit_price = unit_price == '' ? 0 : unit_price;
quantity = quantity == '' ? 0 : quantity;
if (!isNaN(unit_price) && !isNaN(quantity)) {
var total_price = parseFloat(unit_price) * parseFloat(quantity);
$(ele).closest('tr').find('.total_price').val(total_price.toFixed(2));
}
CalculateGrandTotal();
}
//here is the script for total_price display in sub_total at footer //this code is also work fine
function CalculateGrandTotal() {
total = 0;
$(".total_price").each(function () {
total += parseInt($(this).val());
});
$("#sub_total").val(total.toFixed(2));
}
my question is when delete remove table subtract(-) from sub total
Member 13751016
25-Dec-20 0:34am
View
then how ? please help!!
Member 13751016
21-Jun-20 13:07pm
View
but where i correction? please help!
Member 13751016
9-Apr-20 12:29pm
View
improved
Member 13751016
25-Feb-20 3:09am
View
hellow can you help me for this problem?
https://www.codeproject.com/Questions/5260455/How-I-can-get-grand-total-output-when-h-s-tax-adde?cmt=1038048#cmt1038048
Member 13751016
25-Feb-20 3:08am
View
hellow can you help me for this problem?
https://www.codeproject.com/Questions/5260455/How-I-can-get-grand-total-output-when-h-s-tax-adde?cmt=1038048#cmt1038048
Member 13751016
25-Feb-20 3:07am
View
Deleted
hellow can you help this problem?
https://www.codeproject.com/Questions/5260455/How-I-can-get-grand-total-output-when-h-s-tax-adde?cmt=1038048#cmt1038048
Member 13751016
24-Feb-20 20:23pm
View
Service tax function is not working when nettotal is diplay 500 and i added 13% in #healthservicetax and display 65 in @healthservicetaxrs so output is display like this 50065. not showing this 565 how to solve this?
Member 13751016
24-Feb-20 19:56pm
View
//here is h. service tax scrip
$(document).on("change keyup blur", "#healthservicetax", function() {
var mains = $('#rnettotal').val();
var hstax = $('#healthservicetax').val();
var decs = (hstax / 100 ); //its convert 10 into 0.10
var mults = mains * decs ; // gives the value for multiple from mains value
var taxs = mains + mults ;// gives the value for add from mains value
$('#healthservicetaxrs').val(mults);
$('#grandtotal').val(taxs);
});
Member 13751016
20-Feb-20 5:48am
View
if i remove(delete) the row then what the code is subration ?
Member 13751016
29-Mar-18 2:01am
View
and the database create table is
CREATE TABLE IF NOT EXISTS `report` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(250) NOT NULL,
`contactno` varchar(30) NOT NULL,
`address` varchar(250) DEFAULT NULL,
`labno` int(9) DEFAULT NULL,
`age` int(9) DEFAULT NULL,
`gender` varchar(30) DEFAULT NULL,
`refdoctor` varchar(250) DEFAULT NULL,
`image` longblob,
`datetime` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
Member 13751016
29-Mar-18 1:44am
View
this is database.php file
<?php
$servername='localhost';
$username='root';
$password='';
$dbname = "labrptdb";
$conn=mysqli_connect($servername,$username,$password,"$dbname");
if(!$conn){
die('Could not Connect My Sql:' .mysql_error());
}
?>
Show More