我想用jquery或javascript调用textarea的textChange事件 [英] I want to call event of textChange of textarea by jquery or javascript

查看:62
本文介绍了我想用jquery或javascript调用textarea的textChange事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过jquery或javascript调用textarea的textChange事件



我在下面的代码中使用



I want to call event of textChange of textarea by jquery or javascript

I used below code

$(document).ready(function () {
        $("textarea").change(function () {
            $(this).hide();
        });
    });





但是它不好



以下代码是真的





but it's not good

below code is true

$(document).ready(function () {
        $("textarea").click(function () {
            $(this).hide();
        });
    });





但问题是发生变化



我想在asp中使用textCahnge for textbox .net

但是使用jquery或javascript for textarea



but problem is in event of change

I want a thing like to textCahnge for textbox in asp.net
but with jquery or javascript for textarea

推荐答案

document ).ready( function (){
(document).ready(function () {


< span class =code-string> textarea)。change( function (){
("textarea").change(function () {


(< span class =code-keyword> this )。hide();
});
});
(this).hide(); }); });





但不是很好



以下代码为真





but it's not good

below code is true


这篇关于我想用jquery或javascript调用textarea的textChange事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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