Set and Get value input text jquery val function

The following web example consists of a div with id content and an input with id log. The scripts executed, using the val() function, will be the following:

- Store in the variable my_value the value of the input text with id log.
- Select the div with id content and I set as html content the value of the variable my_value.
- Select the input text with id log and I add the value "Insert Value".

Comments

PHP Captcha


Interesting Articles