0

i am using Jquery Datatable , they are really amazing but now my requirement is that for one column i have to show that dropdown list which will have 2 options 1)Approve 2) Reject. now my requirement is that how to display dropdownlist in jquery Datatable.

0

1 Answer 1

1
<table id="tabid">
                    <thead>
                      <tr>
                        <th>Column 1</th>
                        <th>Column 2</th>

                      </tr>
                    </thead>
                    <tbody>
<tr>
<td>
   sample data
</td>
<td>
<select id="something">
<option value="1">Approve</option>
<option value="2">Reject</option>
</select>
</td>
</tr>
</tbody>
</table>

<script type="text/javascript">
$(document).ready(function(){
$('#tabid').dataTable();
});
</script>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.