Sql Check Empty String In Javascript Method