Skip to content
Advertisement

How call onkeyup javascript function from the table column Html.EditorFor

I am trying to call a function calculfac() from the column of a table for each changes using onkeyup event . The column is numeric column and if we type any value there , the all digits from that column should be stored in variable. But when I type the value in NetHrs column , the function is not called Here is the code

JavaScript

Advertisement

Answer

trying to call a function calculfac() from the column of a table for each changes using onkeyup event . The column is numeric column and if we type any value there , the all digits from that column should be stored in variable.

To achieve your requirement, you can refer to the following code sample.

JavaScript

Or trigger that function via onchange event

JavaScript

JS code

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement