I have a textbox with jQuery validations on it
This textBox is not allowing comma in between the values, can someone please help me out
Below is the code
var txtValue = $("#txtValue").val();
txtValue = txtValue.replace(/(^\s*)|(\s*$)/gi, "").replace(/[ ]{2,}/gi, " ").replace(/\n +/, "\n");
var Regex = /^[0-9a-zA-Z-]+$/;
if (!Regex.test(txtValue)) {...

Jignesh KumarRank #91 · 22.9K reputationPosted Jan 25, 2019, 8:28 AM EST
Sanwar RanwaRank #23 · 44.7K reputationPosted Jan 25, 2019, 6:03 PM EST
Munesh SharmaRank #174 · 13.9K reputationPosted Feb 1, 2019, 1:49 AM EST