English 中文(简体)
请求后在“表面”页上执行分类。
原标题:Executing jquery in "parent" page of a $.post request

我在我的index.php网页上有一个表格(id =“电子显示器”),只有检查箱,当我点击一个核对箱时,它用一个贴在索引页(id = 主列)上的一个折页(index-main-list.php)。

$.post("index-main-list.php", $("#selectors").serialize(), function(data){
    $( #main-list ).html(data);
});

这个问题是,在完成员额要求后显示的索引主名单.php中,我要列入一个链接,重新制定选民名单,并检查我选择的检查箱。

But it looks like I can t do something as simple as:

$( #selectors )[0].reset();
$( input[id=topic] ).attr( checked , true);

页: 1 php网页是因为它能够进入指数.php上的选民表格。

是否有任何办法这样做?

问题回答

印章只使用目前属于浏览器范围的页面。 “其他网页”无法使用(浏览器不知道有网页)。 你们需要做的是,使你与网页链接点与某些GET/POST参数,然后,要么在服务器上,要么在网页上装满之后,就把检查箱放在预期的位置上。





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

热门标签