2012-06-21から1日間の記事一覧
jQueryオブジェクトでcssセレクタを多用するのでその備忘録です。 var target; $('.select').click(function() { target = $(this); // .selectそのもの target = $(this).parent(); // .selectの親要素 target = $('.child',this); // .selectの子要素.chil…
jQueryオブジェクトでcssセレクタを多用するのでその備忘録です。 var target; $('.select').click(function() { target = $(this); // .selectそのもの target = $(this).parent(); // .selectの親要素 target = $('.child',this); // .selectの子要素.chil…