473,413 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Highlighting Table Data Fields When User Doesnt Enter Data To A Text Box

Hi all,
I have a web page which is having a text box.I have already validated this using java script.Now i want to validate this same text box without prompting the error message.I need to change the corresponding table data field colour in to red(which would indicate the place which user doesn't have entered value)
If anybody is having an idea pls share with me.
Thx
Thimali
Sep 5 '07 #1
4 1149
dmjpro
2,476 2GB
Hi all,
I have a web page which is having a text box.I have already validated this using java script.Now i want to validate this same text box without prompting the error message.I need to change the corresponding table data field colour in to red(which would indicate the place which user doesn't have entered value)
If anybody is having an idea pls share with me.
Thx
Thimali
Welcome to TSDN.
Good idea.
But first try some code then come here with your specific Code.
Then experts are here to solve your Problem.
Good luck with your try.

Kind regards,
Dmjpro.
Sep 5 '07 #2
acoder
16,027 Expert Mod 8TB
I have a web page which is having a text box.I have already validated this using java script.Now i want to validate this same text box without prompting the error message.I need to change the corresponding table data field colour in to red(which would indicate the place which user doesn't have entered value)
Post what code you have so far. Do you want to change the background colour?
Sep 5 '07 #3
pbmods
5,821 Expert 4TB
Heya, Thimali. Welcome to TSDN!

Simply change the element's background color:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('idOfElementGoesHere').style.backgroundColor = '#ff9999';
  2.  
Sep 5 '07 #4
iam_clint
1,208 Expert 1GB
Hi all,
I have a web page which is having a text box.I have already validated this using java script.Now i want to validate this same text box without prompting the error message.I need to change the corresponding table data field colour in to red(which would indicate the place which user doesn't have entered value)
If anybody is having an idea pls share with me.
Thx
Thimali
Example
Expand|Select|Wrap|Line Numbers
  1. function example(obj) {
  2.     obj.style.backgroundColor="red";
  3. }
  4.  
  5. <input type="text" onblur="example(this);">
  6.  
Sep 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Hasanain F. Esmail | last post by:
Hi, Your help will be greatly appriciated. I have a table with following fields. Table's name is tblTicketNumers TicketNumberID (It is a key field) TicketNumber (Text field) AgentsName (Text...
3
by: Gigi.com | last post by:
Hi All. I need some help trying to pull prices from a price matrix. Here's an example: >>>> 1000 1500 2000 2500 ----------------------------------------- 1000 ¦ 10.20 ...
3
by: Patrick Porter | last post by:
I am looking at followin the suggestion made by Larry on my last post. (his reply is on the bottom) it seems that you can't directly mess with the rich text header text....specifically the addtion...
5
by: DBQueen | last post by:
I have a database where the user will have the opportunity to set up a number of Tests. I want the user to be able to enter the equation if a field for a particular test is to be a calculated...
4
by: Deus402 | last post by:
Here is my table design: tblEmployers EmployerID autonum (primary key) EmployerName text tblLocations LocationID autonum (primary key) EmployerID longint (foreign key) LocationAdress text
1
by: bigmaddaz | last post by:
Ok im designing an application for working out compount interest. The user starts the page, 3 prompts appear, one asking for money invested, next asking for rate of interest, and last one asking for...
6
by: KevinPreston | last post by:
Hello everyone, this is my first post so apologies if i dont get it right first time, i am a self taught Access user, i am stuck on something i am trying to do, briefly i have 2 tables, one for...
1
Merlin1857
by: Merlin1857 | last post by:
How to search multiple fields using ASP A major issue for me when I first started writing in VB Script was constructing the ability to search a table using multiple field input from a form and...
4
by: AlexNunley | last post by:
I've adopted a moderately sized (65k records) active use database (Access 2000, Windows XP). One of the most commonly used forms is whats called the RMA generation field, used to add claim...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.