I\'m trying to find all letters and dashes and dollar signs and remove them from a text box.
function numbersOnly() { if ($(\'.sumit\').val().indexOf([A
Try something like this:
function numbersOnly() { $('.sumit').val().replace(/[\w-$]/g, ""); }