You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue where once you tabbed away from the input it was replacing the value with the placeholder. This is because you are checking for an attribute of value, when you should be checking for value like such: $(this).val(). When the user types into an input field the value attribute doesn't get updated. The attribute value is only for setting a default attribute so if you try to set a default attribute and the value is blank then your on blur will fail. You can change your code to check for user input using $(this).val() and that will work.
The text was updated successfully, but these errors were encountered:
I had an issue where once you tabbed away from the input it was replacing the value with the placeholder. This is because you are checking for an attribute of value, when you should be checking for value like such:$(this).val(). When the user types into an input field the value attribute doesn't get updated. The attribute value is only for setting a default attribute so if you try to set a default attribute and the value is blank then your on blur will fail. You can change your code to check for user input using $ (this).val() and that will work.
The text was updated successfully, but these errors were encountered: