在html5中选中复选框时打开textarea [英] open textarea when checkbox checked in html5
本文介绍了在html5中选中复选框时打开textarea的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我进行html编码的第一天,我有html页面,并且此页面上有一个复选框,我希望当用户选中此框时,textarea应该在同一页面中打开.
This is my first day of html coding andI have html page and on this page there is a check box,I want that when the user check this box,textarea should be open in the same page.
推荐答案
使用JQuery
Using JQuery
(复选框的选择器".change(function() { if(
("selector for checkbox".change(function() { if(
(this).is('':checked''))
(this).is('':checked'') )
这篇关于在html5中选中复选框时打开textarea的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文