Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 08, 2012 09:44 AM by Srikanth Kasturi
Member
157 Points
527 Posts
May 08, 2012 08:56 AM|LINK
Hi,
For a dropdownlist, to show/hide the corresponding next field based on the option selected from the ddl, I had used the following code:
function ShowHideOthersCD(ListObject) { var LinkObj = $(ListObject); if (LinkObj.val() == "Others") { $(".OTHC").show(); } else { $(".OTHC").hide(); } }
Now if the control is changed from a dropdownlist to a checkboxlist, what changes should be made in this code?
Pl help...
450 Points
116 Posts
May 08, 2012 09:35 AM|LINK
Please write the detail code. How do you call from dropdownlist?
Contributor
4289 Points
883 Posts
May 08, 2012 09:44 AM|LINK
I think, no changes are required to this function even though it is a checkboxlist.
coolpal9
Member
157 Points
527 Posts
Help needed for javascript function
May 08, 2012 08:56 AM|LINK
Hi,
For a dropdownlist, to show/hide the corresponding next field based on the option selected from the ddl, I had used the following code:
function ShowHideOthersCD(ListObject) { var LinkObj = $(ListObject); if (LinkObj.val() == "Others") { $(".OTHC").show(); } else { $(".OTHC").hide(); } }Now if the control is changed from a dropdownlist to a checkboxlist, what changes should be made in this code?
Pl help...
mahedee
Member
450 Points
116 Posts
Re: Help needed for javascript function
May 08, 2012 09:35 AM|LINK
Please write the detail code. How do you call from dropdownlist?
Mahedee
Blog: http://mahedee.blogspot.com
Srikanth Kas...
Contributor
4289 Points
883 Posts
Re: Help needed for javascript function
May 08, 2012 09:44 AM|LINK
I think, no changes are required to this function even though it is a checkboxlist.
Srikanth Kasturi
Please "Mark As Answer" if my post serves purpose.