本文介绍了检测文本区域中的链接并输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想允许用户将超链接放入此 textarea
内或 input
中,并使用AngularJS,JavaScript对其进行点击:
I want to allow users to put hyperlinks inside this textarea
or in input
and them to be clickable using AngularJS, JavaScript:
<div class="col-md-12 form-group">
<div class="col-md-9">
<textarea id="obs" class="sigma-form-simple-search-input large-size" rows="5"
ng-model="commandeHdr.obs" ng-change="hasChanges.parameter=true"/>
</div>
</div>
推荐答案
< textarea>
元素唯一允许的内容是文本.
The only allowed content of <textarea>
elements is text.
从文档中:
Permitted content: Text
Tag omission: None, both the starting and ending tag are mandatory.
有关更多信息,请参见
这篇关于检测文本区域中的链接并输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!