﻿// JScript 文件
$(document).ready(function(){
 checkCharLenght();
  });

function checkCharLenght()
{
     if($("textarea").val().length>150)
    { 
       $("textarea").css("background-color","#BD320B"); 
       $("#btnSave").hide("slow");
    }
    else
    {
        $("textarea").css("background-color","#A4D84E");
        $("#btnSave").show("slow");
    }
   $("#now").empty().text($("textarea").val().length); 
}
