English 中文(简体)
我可以在一个隐蔽的领域中使用bl, j,
原标题:can I use blur in a hidden field, jquery

我能否在笼罩的隐蔽场所使用bl吗? 如果没有,我如何追踪隐蔽领域的变化

问题回答

隐蔽的田地是隐蔽的,用户可以看到它能够改变的东西。 只有网页作者/文字才能改变其价值,如果是,你可以利用<代码>change活动跟踪变化。

$( #hidden_id ).change(function(){
  alert( Changed Value:   + $(this).val());
});

变换活动手在隐蔽的输入领域做工。 你们可以做的是这些事情(没有检测!):

function hiddenOnChange(elem, function) {
    if ($(elem).val()!=$(elem).getAttr( oldVal )) {
        function;
    }
    $(elem).attr( oldVal , $(elem).val());

    window.setTimeout(function(){hiddenOnchange(elem, function);}, 100);
}

将这一职能与你的隐蔽投入领域和交换职能联系起来。 通过比较外地的“现值”价值和以前储存的价值,重新调整了兑换功能。 如果情况没有改变,它就会在100米乌拉进行重新检查;如果情况确实发生变化,它将履行你的职责(我希望;)

希望这一帮助。





相关问题
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.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签