2011-02-23 40 views
0

我已經在php網格中實現了jquery對話框,但每次打開相同的對話框時,它都會將記錄拉入框中?jQuery對話框和PHP網格

我宣佈對話框,並使用下列內容:

$("a.pop").each(function(i){ 

    $(this).click(function(e){ 
     e.preventDefault(); 
     $("#details").dialog('open'); 


    }); 

    }); 

任何幫助表示讚賞....

回答

0

希望我讚賞...笑,但請注意,代碼沒有進行測試所以請讓我知道如果

$("a.pop").click(function(e){ 
    e.preventDefault(); 
     $("#details").load($(this).attr('href')).dialog('open');  
    }); 
+0

嗨,感謝您的迴應。我實際上解決它如下:var rowId = $(this).attr('title'); \t //點擊行 $(「#details _」+ rowId).dialog('open');工作得很好。非常感謝。 – user630188 2011-02-25 12:09:25

+0

@ user630188歡迎您來到StackOverflow – 2011-02-25 12:13:06