Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82303

Fixed Columns need to Editable [Fixed] !! (Fixed columns datatable editable)

$
0
0

There are some people asking how to fix fixed columns need to editable.

The answer is added custom class in the text field such as
<input class="abc" style="width:70px" type="text" id="clientId_0" name="clientId_0" value="">

As Clone DataTable copy the nature of the original table, it gets class abc.

Using these codes,
$('.abc]).on('change', function(){
id = $(this).attr('id').replace('clientId_', ""); //Get Id
$('[id^=clientId_' + id + ']').val($(this).val()); //Put Clone Datatable value to original datatable
});


Viewing all articles
Browse latest Browse all 82303

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>