Skip to content
Loading
how to find out in one div this div which control available  
  •                                                             }  
  •                                                             else  
  •                                                             {  
  •                                                         "radio" name="@userSurvey.Id" value="@item.Id" id="@item.AnswerOption" id5="@item.PipeQueId"  class="radonotext">  
  •                                                 }  
  •                                             }  
  •                                           
  •    class="col-md-12">  
  •                                         class="col-md-6 drptest">  
  •                                             class="txtdrop">  
  •                                                 class="col-md-8">  
  •                                                     "answerDropdown" id="@userSurvey.Id" id1="@userSurvey.AddPiping" class="answerDropdown form-control">  
  •                                                         @{  
  •                                                                                       
  •                                                                                         foreach (var i in answer)  
  •                                                                                         {  
  •                                                                                           class="form-control" value="@i.Id" id5="@i.PipeQueId" name="@i.AnswerOption">@i.AnswerOption  
  •                                                                                             if (i.AnswerOption.Equals("Other (Please specify)"))  
  •                                                                                             {  
  •                                                                                                 otherId = i.Id;  
  •                                                                                             }  
  •   
  •                                                                                         }  
  •                                                         }  
  •                                                       
  •                                                   
  •                                               
  •                                               
  •                                             class="col-md-4">  
  •                                                 "text" name="[email protected]" class="droptextbox" id="[email protected]" />  
  •                                               
  •   
  •                                           
  •                                       
  •   foreach (var i in answer)  
  •                                                                             {  
  •                                                                                     class="col-md-12">  
  •                                                                                         class="col-md-11">  
  •                                                                                             @{  
  •                                                                                                             if (i.AnswerOption.Equals("Other (Please specify)"))  
  •                                                                                                             {  
  •                                                                                                         class="checkother">  
  •                                                                                                             class="col-md-4 left">  
  •                                                                                                                 "checkbox" name="chkbox" class="checktextclass PipeCheckClass" id="@i.Id" id4="@userSurvey.Id" id5="@i.PipeQueId" value="@i.Id" />@i.AnswerOption  
  •   
  •                                                                                                               
  •                                                                                                           
  •                                                                                                          class="col-md-8">  
  •                                                                                                             class="OtherTextBox" type="text" name="[email protected]" placeholder="Other Field" id="[email protected]" id4="@userSurvey.Id" id5="@i.PipeQueId">  
  •                                                                                                           
  •                                                                                                             }  
  •                                                                                                             else  
  •                                                                                                             {  
  •                                                                                                         class="col-md-4">  
  •                                                                                                             "checkbox" name="chkbox" class="PipeCheckClass" id="@i.Id" id4="@userSurvey.Id" id5="@i.PipeQueId" value="@i.Id" />@i.AnswerOption  
  •                                                                                                           
  •                                                                                                             }  
  •   
  •                                             }  
  •                                           
  •                                       
  •                                                                                                 }  
  •   
  •  
    0
  • Jignesh Kumar
    Could you please share div tag used in your code ?
    +1
  • hi Jignesh
    I have tried this code but not work. if any other solution???? 
    0
  • Jignesh Kumar
    Hi Kalyani,
     
    just you need to change selector. instead of # you need to use .divcss classname
     
    1. $(".className:input");  
     
    +1
  • hello Jignesh
    if you possible for use div class name ???how???
    0
  • Jignesh Kumar
    Hi Kalyani,
     
    Please try below 
    1. // Give your divId   
    2. $("#QueId:input");  
    https://stackoverflow.com/questions/2402707/how-to-get-all-child-inputs-of-a-div-element-jquery
    +1