Sha256: f32f1ee54565e6fde98af4fc9828f467a0d051d70b6d5c6e13bd1ac9aefb920a
Contents?: true
Size: 692 Bytes
Versions: 5
Compression:
Stored size: 692 Bytes
Contents
function populateServerSideErrors(instanceName, errorMessages) { // Removing the old server validation errors if any $("#div_"+ instanceName +"_server_validation_errors").remove(); // Creating a div to hold multiple error messages. errorMessageHolder = "<div id='div_"+ instanceName +"_server_validation_errors' style=\"margin-bottom:5px;\"></div>" $("#div_"+ instanceName +"_details").prepend(errorMessageHolder); jQuery.each(errorMessages, function(i, message) { errorHtml = "<div class=\"alert danger\" data-alert=\"alert\" style=\"margin-bottom:5px;\">"+ message +"</div>" $("#div_"+ instanceName +"_server_validation_errors").prepend(errorHtml); }); }
Version data entries
5 entries across 5 versions & 1 rubygems