Hey, this is an English text. I want you to translate it into the Tunisian dialect.…
- User
Hey, this is an English text. I want you to translate it into the Tunisian dialect. Please follow these steps:
- Translate step by step and highlight differences between Tunisian dialect and Modern Standard Arabic.
- Highlight sections you are confident translating into the Tunisian dialect. Translate this text into the Tunisian dialect, focusing on capturing the essence of the language nuances:
Q: Textbox not clears when clicks the submit button I am trying to clear the txtSubTotal text box after clicking the PROCEED button. It's not working though I tried some code examples, even in SO. btnProceed/HTML clearSubTotal()/JS function clearSubTotal() { ('#txtSubTotal').val(''); } txtSubTotal <input name="txtSubTotal" type="text" id="txtSubTotal" size="15" value="<?php sql=mysqli_query(row = mysqli_fetch_array(row[0]; ?>"/> form/HTML Appreciate your help on this. NOTE: Found that on the second button press, the text box clears. How to set this correctly for the first button perss? ADD button/JS function submitdata() { var listItemName = document.getElementById("listItemName").value; var listStock = document.getElementById("listStock").value; var txtUnitPrice = document.getElementById("txtUnitPrice").value; var txtQuantity = document.getElementById("txtQuantity").value; var listCustomer = document.getElementById("listCustomer").value; var txtReceiptNo = document.getElementById("txtReceiptNo").value; var TheDate = document.getElementById("TheDate").value; // Returns successful data submission message when the entered information is stored in database. var dataString = {listItemName:listItemName, listStock: listStock, txtUnitPrice: txtUnitPrice, txtQuantity: txtQuantity, listCustomer: listCustomer, txtReceiptNo: txtReceiptNo}; if (listItemName == '' || listStock == ''|| txtUnitPrice == ''|| txtQuantity == ''|| listCustomer == ''|| txtReceiptNo == ''|| TheDate == '') { salesitemsAddFail(); } else { // AJAX code to submit form. ('#list').trigger("reloadGrid",[{page:1}]); window.location.reload(); } }); } } ('#txtSubTotal').val(''); }); ADD button/HTML ADD sales_functions.php A: I found the solution, added the do_onload(id) to calculate the total on loadComplete event which is triggered after each refresh (also after delete) function do_onload(id) { //alert('Simulating, data on load event') var s = opt["loadComplete"] = "function(ids) { do_onload(ids); }"; opt);
- Assistant