0

I have 16 table elements like,

<td id="test"> /Dynamic value appears here from JavaScript/ </td>

Where I put values from OnChange event, with this JavaScript

document.getElementById('test').innerHTML = value + " LT";

Now I want to know how to grab all input field values upon changing input field values in <td id="Test"> </td> , because in the other field I want to show total amount based on other fields.

----------------------------------------------------------update I will ask other question from same opera.

How get value from input type="hidden" field, where value changed allways then user select new element on html ??

6
  • Can you show what content replaces with '/Dynamic value appears here from JavaScript/', without it no body understand how your are doing it. Commented Jan 24, 2014 at 16:11
  • 1
    Your IDs do not match. "Test" and "test". Commented Jan 24, 2014 at 16:13
  • To answer your updated question: use jQuery!: $('#hiddenField').val() Just make sure you include the jQuery library in the head. Commented Jan 24, 2014 at 17:11
  • But how to get value then it changed, without button? Commented Jan 24, 2014 at 17:19
  • $('#hiddenField').val() didint work bescause the value is changed by js Commented Jan 24, 2014 at 17:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.