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
- <div class="QuesIds" id="@userSurvey.Id" >
- div>
- $('.QuesIds').each(function(i){
- AllQuestion.push({
- id:$(this).attr('id')
- });
- });
- for (var i = 0; i < AllQuestion.length; i++) {
- for (var j = 0; j < PipeQuestion.length; j++) {
- if(AllQuestion[i].id===PipeQuestion[j].id)
- {
- alert(AllQuestion[i].id);
- $(AllQuestion[i].id).css("display", "none");
- }
- }
- }
Please Help me.

Jenith ThakkarRank #789 · 2.9K reputationPosted Dec 23, 2018, 10:06 PM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Dec 23, 2018, 9:53 PM EST
Jenith ThakkarRank #789 · 2.9K reputationPosted Dec 23, 2018, 10:19 PM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Dec 24, 2018, 4:12 AM EST
Kalyani ShevaleRank #1,111 · 1.7K reputationPosted Dec 23, 2018, 10:00 PM EST
Kalyani ShevaleRank #1,111 · 1.7K reputationPosted Dec 23, 2018, 10:11 PM EST