input 只能輸數字和逗號

<input  type="text" placeholder="EX:12345,23456" onchange="this.value=this.value.replace(/[^0-9,]+/g, '');" />
arrow
arrow
    全站熱搜

    咪卡恰比 發表在 痞客邦 留言(0) 人氣()