html, javascript

to display data in the form........
if the first textbox has value, then the first radio button is checked and the first drop down box value is selected.....

if the textbox has a value 0 or nothing then the whole div not to be displayed.....
sakvkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bluV11tCommented:
Hi!
Could you please post the code for your form?
0
Dean OBrienCommented:
Hi Sakvk

Not entirely sure from your explanation, but i think this will do the kind of thing you are looking for.
The red DIV will disappear if you enter '1' in the text box, select radio button 'Option1', and select 'Option3' from the drop down list.

Regards
Easynow


<html>
<head>
<script>
var radio = 0;
var dropdown = 0
var textbox = 0;
function update1(x)
{
textbox = x;
check();
}
function update2(x)
{
radio = x;
check();
}
function update3(x)
{
dropdown = x;
check();
}
function check()
{
if(radio==1 && dropdown==1 && textbox==1) testDIV.style.display = "none";
}
</script>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
	<p><input type="text" name="T1" size="20" onblur='update1(this.value)'></p>
	<p><input type="radio" value="1" name="R1" onclick='update2(this.value)'>Option1<br><input type="radio" name="R1" value="0" onclick='update2(this.value)'>Option2</p>
	<p><select size="1" name="D1" onchange='update3(this.value)'>
	<option></option>
	<option value="1">Option3</option>
	<option value="0">Option4</option>
	</select></p>
	<div id="testDIV" style="width:100px;height:100px;background:red;display:block"></div>
</form>
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MatthiasVanceCommented:
Could you please explain a bit more about what you're trying to accomplish?

Kind regards,

Matthias Vance
0
Dean OBrienCommented:
A solution was posted, sakvk did not respond.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.