IE events do not support the preventDefault method. With jQuery you can simply return false to cancel the event:
$('.signup').click(function (e) { $('#modalwikivideo').modal(); return false; }); - ricardo On Oct 3, 7:28 am, willard <[EMAIL PROTECTED]> wrote: > Hi folks.. I can't fathom this out. > I have an image which looks like this: > <img src="/images/commoncraft.jpg" class="signup floatleft" /> > > and a bit of javascript with simplemodal that looks like this: > > $(document).ready(function () { > $('.signup').click(function (e) { > e.preventDefault(); > $('#modalwikivideo').modal(); > }); > > }); > > The problem is it works fine in safari, firefox but Not IE. On > clicking the image, IE gives the rather unuseful error: Object doesn't > support this property or method > > (It can be seen at:http://otwikiflash.net/action/wikipedia) > > Any ideas what IE is moaning at?? > > Thanks! This is doing my head in..! > W