• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JQuery related

 
vinaya namburi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want a jquery code for

when a text box got focus background color is something

and when a text box blur background color is something
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vinaya namburi wrote:i want a jquery code for

Please red => NotACodeMill and ShowSomeEffort
Show us what you have tried so far, tell us where you are stuck and we will help point you in the right direction.
Also, when requesting assistance, using the word "Please" will take you a long way
 
vinaya namburi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i dont know how to ask

i tried like the below the code is



but i don't got answer

please help me
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need jQuery to do this? CSS will work:
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Modern day browsers do not need JavaScript for this

HTML:



CSS:



Example
http://jsfiddle.net/TF3RB/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic