如何在我的文本框中将$符号设置为固定字符? [英] How Can I Set A $ Symbol In My Textbox As A Fixed Character?

查看:182
本文介绍了如何在我的文本框中将$符号设置为固定字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< input type =   number readonly = < span class =code-string>  true  class  =   clmexpchqinput name =   txtamt id =   txttotamt style =   padding:5px 0px 0px; margin:2px 10px 0px; border:1px solid; /> 





它是文本框的输入标签,但我的要求是如何在文本框中设置$作为修复符号,所以每次用户输入时它都会显示'$ text'。

解决方案

作为文本框中的修复符号,因此每次用户输入时,它都会显示'


文本。

只有一个想法: http://bit.ly/1obBNUp [ ^ ]。



-SA


<input type="number" readonly="true" class="clmexpchqinput" name="txtamt" id="txttotamt" style="padding:5px 0px 0px;margin:2px 10px 0px;border:1px solid;"/>



its the input tag for textbox,but my requirement is how to set $ as a fix symbol in the textbox ,so every time when user gives input it will show '$text'.

解决方案

as a fix symbol in the textbox ,so every time when user gives input it will show '


text'.


Just one idea: http://bit.ly/1obBNUp[^].

—SA


这篇关于如何在我的文本框中将$符号设置为固定字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆