It looks like the syntax you are using is from jQuery's Impromptu plugin ( http://trentrichardson.com/Impromptu/ ), if this is what you're using then you need $. infront of the prompt like so:
$.prompt("Are you sure you want to delete?", { buttons: {Ok:true,Cancel:false } }); otherwise just prompt by itself only handles Ok and Cancel, there is no button option that I'm aware of. On Oct 1, 11:59 am, FrankTudor <[EMAIL PROTECTED]> wrote: > I have a jquery script that gives the user a prompt and a choice to > make sure they want to delete a value from a datasource. > > Here is my code... > > It prompts funny...and it goes ahead and processes anyways even if you > select cancel.. > > Can someone fix me up here? > > <script type="text/javascript"> > $(document).ready(function() > { > $("a").click(function() > { > prompt("Are you sure you want to delete?",{buttons: > {Ok:true,Cancel:false}}); > } > ); > } > ); > </script> > > Thanks, > Frank