Click here to Skip to main content
16,014,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<ig:groupfield key="Address" xmlns:ig="#unknown">
<Header Text ="Not found" />// I want to make this header hidden or visible depending on a drop down selection
Posted

$(function(){
$("#dropdownID").change(function(){
if($("#dropdownID option:selected")=="dowpdownValueOnwhichYouWantToHide")){
$("#header").hide();
}
else
{
$("#header").show();
}
});
});
 
Share this answer
 
Hey ,

You can use below code for the same.

<header text="xyz" id="Yourheader" />
 
<script>
$(function(){
$("#dropdownid").change(function(){
if($("#dropdownid option:selected").text() =="Your text")){
$("#Yourheader").hide(); 
}
else
{
$("#Yourheader").show();
}
});
});
</script>


When you change your dropdown that time this function will call and do that proper action.
 
Share this answer
 
Comments
Deepu S Nair 12-Feb-15 2:14am    
please check the first solution.both are same.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900