permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes JQuery related Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JQuery related" Watch "JQuery related" New topic

JQuery related

vinaya namburi

Joined: Jul 15, 2013
Posts: 6
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

Joined: Jul 26, 2007
Posts: 10167

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

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
vinaya namburi

Joined: Jul 15, 2013
Posts: 6
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
Ranch Hand

Joined: Nov 06, 2012
Posts: 295

Why do you need jQuery to do this? CSS will work:

Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Modern day browsers do not need JavaScript for this



I agree. Here's the link:
subject: JQuery related
Similar Threads
css background color question
JList SelectionForeground problem when BOLD
How to display text over an image in IE
How to populate different colors with different values inside a single dropdown field in html form ?