最大化文本框的大小 [英] Maximize size of the textbox

查看:72
本文介绍了最大化文本框的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我单击文本框时,texbox的大小应增加..有人可以帮助解决此问题吗?

谢谢与问候

Ch.Sukesh Kumar

解决方案

,您可以jquery focus函数,即当鼠标移至文本框并单击此方法时触发! 当字符长度变大时,此链接比您的Idea更好地工作!
http://www.jacklmoore.com/autosize [ api.jquery.com/focus [ ^ ]
这是您要查找的脚本的示例:

 <  脚本   类型  ="     src   ="  https://www.google.com/jsapi" ">< ;  /script  > 
<  脚本 >  

(文档).ready(function(){


('textarea.expand').focus(function(){


Hi,

When i click on the textbox the size of texbox should be increase.. can any one please help on this issue?

Thanks&Regards

Ch.Sukesh Kumar

解决方案

you can you jquery focus function , that when mouse move to your textbox and click this method fire!
this link work better than your Idea,when the character length go bigger the size increase!
http://www.jacklmoore.com/autosize[^]
and this is the focus document event on jquery website:
api.jquery.com/focus[^]
and this is an example of the script you looking for:

<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>


(document).ready(function(){


('textarea.expand').focus(function () {


这篇关于最大化文本框的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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