jQueryを読み込んで下記を追加。
.boxというclass名をつければその要素全体にリンク要素が効きます。
<script type="text/javascript"> $(function(){ $(".box").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); }); </script>
jQueryを読み込んで下記を追加。
.boxというclass名をつければその要素全体にリンク要素が効きます。
<script type="text/javascript"> $(function(){ $(".box").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); }); </script>
40代webクリエイター
1人が好き、家が好き、副業と投資でお金貯めてます
31歳で貯金200万円、41歳で2000万円、43歳で2400万円達成中
コメント