使用 JQUERY 在文本框中显示小数点后两位的数字

Display number with 2 decimal place in Textbox by USING JQUERY

这是我的文本框

asp:TextBox  ID="CurrentRateIDTextBox" runat="server" ></asp:TextBox

如何使用 JQUERY 在文本框中显示 2 位小数 的数字 请给我完整的代码。我是初学者。

谢谢

我认为您要查找的是 <input> 类型数字的元素。

<input type="number" step="0.01" value="10.14">

这将允许您输入最多 2 位小数的数字。我想,这就是你要找的。