I've successfully implemented a dynamic data table, but I'm facing a small issue with the Second row in the "NARRATION" column.
The problem arises when I click on the "ADD NEW" button to add a new row. The narration column in the second row displays a popup text editor, which is working fine. However, when I add another row by clicking "ADD NEW" again, the narration column also shows the popup text editor, which is not desired.
My goal is to change the input method in the dynamically added rows to a normal input box instead of a modal text editor that appears for the first two rows.
Specifically, I want only the first two rows to display the popup text editor, while any additional rows should have input boxes.
Access the full code here on FIDDLE
/* TABLE JS */
$(document).ready(function() {
// JavaScript code for handling dynamic rows goes here
});
/* POPUP JS */
// JavaScript code for handling popups and their functionalities goes here
<!-- Add necessary external libraries -->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
</head>
<body>
<!-- Your table markup and modal popups go here -->
</body>
</html>
I hope this question makes sense now.