prop jquery function obtain modify the value of properties

In the following web example we have an element a that creates a link with id example and a div without any style with id square.

  • We obtain the value of the href property and display it.
  • We create a new property target with value _blank.
  • We create several properties title and style to the div with id square and style it as a red square.
Comments

PHP Captcha


Interesting Articles