Sharepoint Masking电话号码 [英] Sharepoint Masking of Phone Number
本文介绍了Sharepoint Masking电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以屏蔽sharepoint 2010中的文本字段。
我有电话号码字段,我想用以下格式掩盖它。
电话掩码:(###)### - ###
任何人都可以帮忙!
谢谢
Hi,
Is it possible to mask a text field in sharepoint 2010.
I have phone number field, i want this to masked in following format.
Phone mask: (###) ###-###
Can anyone help!
Thanks
推荐答案
得到了解决方案:
Got the solution:
<script language="javascript" src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript" ></script>
<script language="javascript" src="http://jquery-joshbush.googlecode.com/files/jquery.maskedinput-1.2.2.min.js" type="text/javascript" ></script>
<script language="javascript" type="text/javascript">
jQuery(function(
){
(input [title ='Number'])。mask((999) )999-9999,{placeholder:#})。val((###)### - ####);
});
< / script >
("input[title='Number']").mask("(999) 999-9999",{placeholder:"#"}).val("(###) ###-####"); }); </script>
这里数字是字段名称。
Here "Number" is the field name.
这篇关于Sharepoint Masking电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文