2010-10-04 89 views

回答

0

不,你不能用textfield或textarea做到这一点。如果你只想要的链接,下面的工作:

    fieldLabel: 'Attention', 
       html: '<a href="http://google.com">xxxxxxxxxxx</a>', 
0

使用纯JavaScript,你可以做这样的事情:

HTML

<label for="txt">Text</label> 
<input id="txt" type="text" onclick="url=document.getElementById('txt').value;if (url != ''){window.location=url;}"/> 

CSS

input#txt { 
    color: blue; 
    text-decoration: underline; 
} 

查找它here