If you're only going to save the content if it is less than 250 characters, it might be best to actually limit the content of the input.
See this post for how to limit the number of characters an input will accept.
If you're only going to save the content if it is less than 250 characters, it might be best to actually limit the content of the input.
See this post for how to limit the number of characters an input will accept.