Steve, yes I did try to use <button>, <a>, <input="button"> and <input="submit"> but to no success.
Hector, it still does the same thing even with the preventDefault() method in place. On Feb 23, 11:43 pm, Hector Virgen <djvir...@gmail.com> wrote: > Try preventing the default action of the event: > $("#btnAddSession").click(function(event){ > $("#addproductsForm").dialog("open"); > event.preventDefault(); // prevents the link from being followed > > }); > > -Hector > > On Mon, Feb 23, 2009 at 7:01 PM, Steven Yang <kenshin...@gmail.com> wrote: > > have you tried changing the type of btnAddSession from submit to button?