Sha256: 0a5f4c9aa05437caccc40a572f1f6bfb618d2ced5d4c72ff1ee674c84d21f625
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 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 alert-danger\" data-alert=\"alert\" style=\"margin-bottom:5px;\">"+ message +"</div>" $("#div_"+ instanceName +"_server_validation_errors").prepend(errorHtml); }); }
Version data entries
5 entries across 4 versions & 1 rubygems