私は乱雑なスクリプトとタグについてお詫び申し上げます、私は初心者です。 。私は、これは$(この)内にあるDIVクラス「reserveAPickupAppointmentLocationとdiv要素内のテキストを選択します$(これは)多くのうち選択されたエントリで関連する行は次のとおりです。。
var location = $(".reserveAPickupAppointmentLocation, this").text();
?
$(".reserveAPickupAppointmentRoommateAppointment").click (function() {
if ($(this).hasClass("confirm")) {
}
else {
$("img").remove(".confirmAppointment");
$(".reserveAPickupAppointmentRoommateAppointment").removeClass("confirm");
$(this).addClass("confirm");
$(this).append("<img src=images/confirmAppointment.png class=confirmAppointment id=roommateAppointment>");
$(".confirmAppointment").click (function() {
$(".confirmAppointment").unbind("click");
var location = $(".reserveAPickupAppointmentLocation, this").text();
alert (location);
});
}
});
関連するPHPの一部
:。これは私が私がのフルjqueryの機能欲しいものだけを取得するにはどうすればよいだけではなく、$(この)からの、すべてのエントリからの位置を返します。
HTML部分をどうぞ? – LotusH
@lotusHがhtmlで更新されました。これは私のデータを元に戻すための乱雑な方法であることは知っていますが、以前はこのフォーラムで誰かとディスカッションしましたが、まだ変更する機会はありませんでした。 – radleybobins
と私に投稿してくれてありがとう、それを掃除している間、私はエラーを見つけた...私は間違った場所を間違って4回(おそらくコピーし、貼り付け)、以下のコードで動作しませんでした – radleybobins