<%--
--%>
<%----%>
Bank
<%-- --%>
<%-- --%>
Beneficiary Account Number
<%-- --%>
<%-- --%>
Confirm Account Number
<%-- --%>
<%----%>
Beneficiary Name
<%-- --%>
<%-- --%>
IFSC Code
<%-- --%>
Do You Have IFSC Code
YES
No
<%----%>
OTP
<%-- --%>
<%-- --%>
<%-- --%>
Add New Beneficiary
<%----%>
<%-- --%>
<%-- --%>
<%-- --%>
<%-- --%>
<%-- --%>
<%----%>
<%-- --%>
<%-- --%>
<%-- --%>
Do You Have IFSC Code
<%----%>
<%-- --%>
<%-- --%>
<%-- --%>



Jaimin ShethiyaRank #177 · 13.7K reputationPosted May 3, 2024, 7:49 AM EDT
Hello,
Please use below function for remove comma.
function removeLastComma(input) { if (input.indexOf(',', this.length - ','.length) !== -1) { input = input.substring(0, input.length - 1); } return input; }Thanks
Jignesh KumarRank #91 · 22.9K reputationPosted May 3, 2024, 9:39 AM EDT
use this function to remove the last place comma from text input,
function removeLastComma(inputId) { var text = $(inputId).val(); // Check if the text input value ends with a comma if(text.slice(-1) === ',') { // Remove the last comma text = text.slice(0, -1); // Update the text input with the modified text value $(inputId).val(text); } }use this function wherever you need like below, If you wish to remove your TxtBeneficiaryAccountNumber then pass the text Id to function
removeLastComma('#');