クリックした 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 エディターでコードを書くことに慣れたほうがよいでしょう。