Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Required Field only if other data exists

Status
Not open for further replies.

rojas1mg

Programmer
Jun 15, 2004
119
US
Does anyone have a JS that can check data in a row to see if data exists and if it does, it requires a particular block to be completed? Here's the scenario.....

I have a <table> and it contains multiple rows <TR>, now each row <TR> is not mandatory to complete, but if you enter something in either of the cells in that row, then the "comments" block must be completed.

Thanks and I hope this helps.

rojas1mg - - - I love Tek-Tips and all members who reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top