2010-10-04 86 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