Created
October 12, 2017 14:33
-
-
Save Bewitchedyegor/69ce5ca5636efa82dba906e7b9248956 to your computer and use it in GitHub Desktop.
Check if input value is empty and display a message inside
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.js-checkWeb').click(function () { | |
| if ($('#banner_link').val() === '') { //check if value is empty | |
| $('#banner_link').val('your message here').css('color', 'red'); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment