Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

i want to skip javascript button press

this is a screenshot

enter image description here

i want it to print the total directly without the button press

this is my code

gtotal = formatDecimal(twt);
        <?php if ($pos_settings->rounding) {?>
        round_total = roundNumber(gtotal, <?=$pos_settings->rounding?>);
        var rounding = formatDecimal(0 - (gtotal - round_total));
        $('#twt').text(formatMoney(round_total) + ' (' + formatMoney(rounding) + ')');
        $('#quick-payable').text(round_total);
        <?php } else {?>
        $('#twt').text(formatMoney(gtotal));
        $('#quick-payable').text(gtotal);
        <?php }
        ?>
        $('#item_count').text(count - 1);
        $('#paymentModal').appendTo("body").modal('show');
        $('#amount_1').focus();
share|improve this question

put on hold as off-topic by epascarello, Jay Blanchard, Praveen Kumar, Nana Partykar, NathanOliver 14 hours ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – epascarello, Jay Blanchard, Praveen Kumar, Nana Partykar, NathanOliver
If this question can be reworded to fit the rules in the help center, please edit the question.

    
your code please.. – Vicky Gonsalves 14 hours ago
    
It is impossible to help you with what you provided. But sounds like you need an onchange event attached to whatever it is. – epascarello 14 hours ago
    
my code pastebin.com/aXKp6smH – Ibrahim A Karim 14 hours ago
    
So, In Pastebin, we all people are going to see your 1800+ lines code. Is It? – Nana Partykar 14 hours ago

Browse other questions tagged or ask your own question.