我已经编写了一个html和脚本的示例代码,如下所示:当我执行此代码时,我将获得该警报,但是当我通过按Tab键更改cca时,其他警报则显示警报.如何使用该文本框并启用和禁用它的其他文本字段.
HTML:
<div id="cca" class="leaf">
<label class="control input text" title="">
<span class="wrap">cca</span>
<input class="" type="text" value="[Null]">
<span class="warning"></span>
</label>
</div>
Run Code Online (Sandbox Code Playgroud)
JS:
jQuery(document).ready(function () {
alert("hello");
jQuery("#cca label.control input").on('change', function (event) {
alert('I am pretty sure the text box changed');
event.preventDefault();
});
});
Run Code Online (Sandbox Code Playgroud) 需要解决方案如何在文档准备好时使用 jquery 启用和禁用文本字段。我尝试的示例代码如下,但没有得到任何输出,也没有显示警报。
jQuery(document).ready(function(){
/*jQuery('#tan label.control input').change();*/
});
jQuery("#cca label.control input").on('change', function (event) {
alert('I am pretty sure the text box changed');
event.preventDefault();
});
Run Code Online (Sandbox Code Playgroud) 我试着用SQL loader.The的是表必须为空的数据loading.Is有什么办法可以做到数据上传不截断table.The CSV数据需要在table.i要追加正在使用Oracle 11g.
我怎样才能获得标签标签 input type="text"值?
这不是我的代码,结构不能改变
<div id="test">
<label class="control input text">
<span class="wrap">startdate</span>
<input type="text">
<span class="warning"></span>
</label>
</div>
Run Code Online (Sandbox Code Playgroud)