Assume that I the following JS function which generates a table of number type inputs of the given number of rows and columns and displays it in the given div;
generate_table(3,3,'display_id')
I wish to have a dropdown to give the user a choice between 2 and 6 for the size of the matrix that they wish for the det(A) to be calculated. Up to this point I have used button to have a new input table to be generated. How can I make it so that the size of the table gets updated as a new value from the dropdown is selected ?
Aucun commentaire:
Enregistrer un commentaire