如何使可编辑HTML表格中的表格单元格仅接受数字(不包含字母)? [英] How to make a table cell in the editable HTML table to accept numbers only (no letters)?
本文介绍了如何使可编辑HTML表格中的表格单元格仅接受数字(不包含字母)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用HTML5,JavaScript,JQuery.
I am working with HTML5, JavaScript, JQuery.
推荐答案
有一个 $ .isNumeric( )函数,否则您将不得不使用Javascript编写自己的函数-
There's an $.isNumeric() function in jQuery 1.7, otherwise you'll have to write your own function in Javascript - there's a few answers on that already.
这篇关于如何使可编辑HTML表格中的表格单元格仅接受数字(不包含字母)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文