Kalyani Shevale

Kalyani Shevale

  • NA
  • 3.2k
  • 691.8k

how to hide some div on run time in jquery

Dec 24 2018 2:45 AM
I have one div this div generated in dynamically.I want to display some div on run time and some div hide in run time .how to hide this div on dynamically.
 
This is Div Code
  1. <div class="QuesIds" id="@userSurvey.Id" >    
  2. </div>   
jquery Code
  1. $('.QuesIds').each(function(i){  
  2.            AllQuestion.push({  
  3.            id:$(this).attr('id')  
  4.            });  
  5.        });  
  6.   
  7. for (var i = 0; i < AllQuestion.length; i++) {  
  8.                for (var j = 0; j < PipeQuestion.length; j++) {  
  9.                    if(AllQuestion[i].id===PipeQuestion[j].id)  
  10.                    {  
  11.                        alert(AllQuestion[i].id);  
  12.                          
  13.                        $(AllQuestion[i].id).css("display""none");  
  14.                    }  
  15.                }  
  16.            }  
how to apply this css on this matched Question Id.
 
Please Help me.

Answers (6)