C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




plz solve very urgentttttttttttttttttt?


Posted Date: 30 Jul 2008      Total Responses: 1

Posted By: Nimmanagottu Srinivas       Member Level: Gold     Points: 1



This is completely in line function code, my requirement is iam using dropdown in that i have taken some items, so here if i select one item in the dropdown next features description will display in the textbox(txtDescription)suppose i want "This is good product cantaine many features" this description will statically display in the textbox with related selected item how does it possible plz send code will possible in java script?........




Responses

Author: Vidhya    30 Jul 2008Member Level: GoldRating:     Points: 1

hi,

HTML 4 knows an attribute named disabled for HTML form controls, it is
scripted as the property of the same name so to have a form that enables
a select if a certain option of another select is selected have a look
at the following example:

<html>
<head>
<title>disabling/enabling a form control</title>
</head>
<body>
<form name="formName">
<select name="select1"
onchange="if (this.selectedIndex == 3) {
this.form.elements.select2.disabled = false;
}
else {
this.form.elements.select2.disabled = true;
}">
<option>option 1</option>
<option>option 2</option>
<option>option 3</option>
<option>option 4</option>
<option>option 5</option>
</select>
<select name="select2">
<option>option 1</option>
<option>option 2</option>
<option>option 3</option>
<option>option 4</option>
<option>option 5</option>
</select>
<script type="text/javascript">
document.forms.formName.elements.select2.disabled = true;
</script>
</form>
</body>
</html>

Note that script is used to disable the select initially as a select
disabled statically with HTML would mean the user needs JavaScript
enabled to make use of the form.

Note:

rate this content if it is useful!



Post Reply
You must Sign In to post a response.
Next : checkboxlist server control script validation
Previous : how to create nested masterpages
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use