lfalanga
5/29/2015 - 12:07 PM

VALIDATION textarea

VALIDATION textarea

if (!$("#myTextArea").val()) {
    // textarea is empty
}

if (!$.trim($("#myTextArea").val())) {
    // textarea is empty or contains only white-space
}

if (!$.trim($("textarea[name='MSTGRN_Lib2']").val())) {
    // textarea is empty or contains only white-space
}