Question

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..,

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top