SyntaxFix
Write A Post
Hire A Developer
Questions
I would also trim the input field, cause a space could make it look like filled
if ($.trim($('#person_data[document_type]').val()) != '') { }