how to use val() to display code example Example: jquery value of input $("#textInput").val() // To get value of element textInput