Created
March 10, 2019 18:13
-
-
Save thejungwon/f437edabb3ab9b5995338b27d84ef24c to your computer and use it in GitHub Desktop.
This file contains 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
//1. Get a value by id | |
var value = $('#test_id').val(); | |
//2. Get a value by class | |
var value = $('.test_class').val(); | |
//3. Get a value by name | |
var value = $('input[name=test_name]').val(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment