Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#creativeSave").click(function () {
- var maxPreambleCount = $("#preambleCharacterCount");
- var maxTextCount = $("#textCharacterCount");
- if ($("#text").val() == '' || $("#preamble").val() == '') {
- $("#errorMsg").show().text('Please enter text into the above fields');
- return false;
- } else {
- if (maxPreambleCount.hasClass("nomoreChars") || maxTextCount.hasClass("nomoreChars")) {
- $("#errorMsg").show().text('Make your remaining characters do not exceed 0');
- return false;
- } else {
- $("#errorMsg").hide().text('');
- return true;
- }
- }
- if ($("#responseCode").val() == 0) {
- alert("what");
- }
- });
Add Comment
Please, Sign In to add comment