Hi all JS experts,
I am so weak in Javascript, and I wish I can learn something from you guys from the stupid questions I asked.
Q1. I use a cooL javascript function "insertRow" to insert a new row at the end in my table. However, my table is not consistent, which means each row can be dynamic, some of the fields in the first row can be disappeared or became another type of elements. So, when I inserted a new row to the table, it follows the previous row style(number of fields, types) to insert a new row to my table, which betrayed me. I wish each new row should be insert in a way that the first row looks like, no matter how one of the row behaves. Is there any tricky way to do so ? I am freaking out !!!
Q2. I have another table has add and delete button to add or delete the rows dynamically. Normally, one of the combo box event will trigger another combo box to it. However, when multiple rows exerted, the combo box in the other rows will always trigger the combo box in the first row, not it's own row. I beleive it's my bug, however, I don't know how to fix it. My function is provided in the following:
Thanks for helping me
Transistor