Domanda

Can I use confirm() while uplifting my script from javascript to jquery? I have tried to use dialog in jQuery but i need to get the alert box in same style as in confirm()(java script). Is there a way to get it or can I use confirm() in the Jquery????

Thanks in advance..,

È stato utile?

Soluzione

jQuery is a JavaScript library.

It is NOT a different programming language. You can easiliy use confirm or any other native JavaScript functions when you use jQuery.

Altri suggerimenti

jQuery is just a library of utility functions written in, and used from, JavaScript. There's no reason you can't use confirm in your code, whether or not you use jQuery.

confirm provides a poor user experience, can't be styled, and offers zero validation functionality, but there's nothing about jQuery that prevents your using it.

yes you can use confirm in JQuery. JQuery is built on JavaScript it is not a replacement for JavaScript. All JavaScript functions work in JQuery.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top