English 中文(简体)
舱位 在飞行中添加动态投入领域的观察
原标题:jquery typeWatch with Dynamic input fields added on the fly

How can i get the Id of the input field added on the fly? My script adds the input fields on click on the button , using

var ix = 1;
$(template2(ix++)).appendTo("#dataTable tbody");
var template2 = jQuery.format($("#template2").val()); 

我在插入新领域之后,也添加了这一条,这样,它就把Watch添入了所有电子邮件类别。

$(".email").typeWatch( { highlight:true, callback:function(){alert("changed search text"); },  wait:750  } );

现在,在“反馈职能”中,我想获得投入领域类型中的一流。 警报会启动。

请提出咨询意见。

增 编

问题回答

在“回击”职能中,它看着这句话,它含有一个DOM物体,用于触发 call击的内容。 因此,

$(this.el).attr( id )

你们应该重新找你。 缩略语





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签