I’m trying to learn codeigniter and jquery. There is always a val() that nobody explains. What is it for?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When it comes to jQuery, it is all in the documentation.
Essentially, the
valfunction is to set or get the value of an element.If you have an input field, like so:
Then you can do this to get the value of the field:
Or do this to set the value of the field: