jQuery this $(this) Selector

Read the tutorial on YogiHosting »

1. Change the color of the clicked element

  • first
  • second
  • third
  • forth

2. Change the color of the each element having class 'myclass'

  • has "myclass"
  • some text
  • has "myclass"
  • some text

3. Append the text with 'the button'

4. Change border of the textbox on its focus

5. Change text decoration to underline on mouse hover

Hover the mouse over me