Hmm, sounds like a visual studio bug. Usually you just return false instead of doing e.preventDefault() when coding with jQuery.
i.e. $('a').click(function(){ alert('clicked'); return false; // prevent default }); On Jan 3, 7:54 pm, yww <yww...@gmail.com> wrote: > Hi I am new to this group and also new to Jquery. > So I am just trying the sample in tutorials. Basically it works very > nicely. > But there is a small flaw while I was playing with JQuery, > that I can't get the intellisnse help from visual studio. and I have > captured the screen shot as following: > > http://picasaweb.google.com/lh/photo/i6GxK88a7vxrQR9qS8BARQ?feat=dire... > > so you see I have add reference to jquery-1.2.6-vsdoc.js, but there is > no preventDefault() method for event object. What should I do to > enable that? > > by the way, although the method was not listed, it can be used > correctly and really prevented the click event.