Javascript to remove spaces from a textbox value

后端 未结 7 1367
一生所求
一生所求 2020-12-17 00:44

I\'ve searched around for this a lot and can\'t find a specific example of what I\'m trying to do. Basically I want to get the value of a textbox, by the name of the text bo

相关标签:
7条回答
  • 2020-12-17 01:13

    Here is a function I use to replace spaces.

    function removeSpaces(val) {
       return val.split(' ').join('');
    }
    
    0 讨论(0)
提交回复
热议问题