Balaji Palani

Balaji Palani

  • NA
  • 364
  • 63.5k

Finding Id inside of table using Jquery mvc

Sep 29 2016 3:50 AM
  1.  <tbody id="tby_column">  
  2. lt;td> <select class="form-control" id="QueryColumnList[1].Columns" required="" data-msg="Select the Column"> <option value="">Select a Column </option> </select> </td>  
  3. </tbody>  
About the table,
 
How to find  id- QueryColumnList[1].Columns   ?
 
i tried below Jquery code:
  1. var compiled = $('#tpl_Column').tmpl(data).html();  
  2.          $('#tby_column').append(compiled);  
  3.          alert($('#tby_column').html());  
  4.          
  5.          var ddlId = "#QueryColumnList[" + rowid + "].Columns";  
  6.          alert(ddlId);  
  7.          var ddl = $('#tby_column').find(ddlId).length;  
  8.            
  9.          alert(ddl);  
 
 
 
 
 
 

Answers (2)