DagonHounds
New Member
I'm making a website that uses a Javascript sorter. In addition to the sorter, I also put in some custom javascript, to make certain div's clickable. My reasoning was that using the property just couldn't do all that we wanted it to do, so I stuck with divs, and used javascript to make them function.Take a look here -- http://www.opohills.com/taipei-rentals.phpYou can scroll down to where you see the search bar, and click on one of the apartments. When you go back click (1 bedroom), you'll see that clicking on the apartments doesn't work anymore.I'm not quite sure what to make of this at all. The javascript for the clickability is at the bottom of the page.What are your thoughts on this?Here's my javasscript\[code\] <script type='text/javascript'> $(".box_1").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); $(".box_2").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); $(".box_3").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); $(".apt2").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); </script>\[/code\]Thoughts?