@manhnguyenv

Welcome to my blog!

Show Confirmation Alert

May 23, 2018 10:05

Dialog Confirm (edit)

jQuery Dialog

http://jqueryui.com/dialog/

jQuery Confirm

http://craftpip.github.io/jquery-confirm/v1.5.3/

https://craftpip.github.io/jquery-confirm/

jQuery Confirm Box

https://tutorialzine.com/2010/12/better-confirm-box-jquery-css3

StyleSheet with jQuery: Important property

.importantRed {
  color: red !important;
}
$("body").addClass("importantRed");

StyleSheet with jQuery: Important property

$(document).ready(function(){
    $('#txt').attr('style', 'width: 150px !important');
});

StyleSheet with jQuery: Important property

$("#tabs").css("cssText", "height: 650px !important;");

StyleSheet with jQuery: Important property

$('.foo').css("width", "100% !important");

even though this works:

$('.foo').css("width", "100%");

So, if you really need to use !important, here is the best workaround I've found:

$( '.foo').each(function () {
this.style.setProperty( 'border', 'none', 'important' );
});

Load StyleSheet Dynamic

http://www.vidalquevedo.com/how-to-load-css-stylesheets-dynamically-with-jquery

$(document).ready(function() {
if($("#container").size() > 0) {
if (document.createStyleSheet) {
document.createStyleSheet('style.css');
}
else {
$("head").append($("<link rel='stylesheet' href='style.css' type='text/css' media='screen' />"));
}
}
});

Bootstrap Alert in ASP.NET MVC

http://jameschambers.com/2014/06/day-14-bootstrap-alerts-and-mvc-framework-tempdata/

Confirm in ASP.NET MVC

https://stackoverflow.com/questions/13541225/asp-net-mvc-how-to-display-success-confirmation-message-after-server-side-proce

Confirm in ASP.NET CORE

https://andrewlock.net/post-redirect-get-using-tempdata-in-asp-net-core/

Categories