我在点击的ID中选择ap标签时遇到了一些问题,代码如下;
<tbody> <tr id="test1"> <p> Some random text that should show up in the dialog. </p> <td>test</td> <td>test</td> </tr> ... the rest of the tr's are identical, nothing else to see here. </tbody> $('#test1, #test2, #test3, #test4').click(function(){ $(this 'p').dialog(); });
现场测试;http://team-blandsaft.no-ip.org/
最好习惯在 stackoverflow 编辑器中编写一些代码。