Use js to dynamically generate three texts A: text B: text C: text None of them have IDs How to make the value in A plus the value in B automatically displayed in C
Reply to discussion (solution)
Is text box a and the value of text box b displayed in c?
Is text box a and the value of text box b displayed in c? c
Yes, the added sum is displayed in C
My question is: the ID of the text box changes, so it is very troublesome to get the value of the text box based on the ID. I wonder if there is any other way. Thank you
Is the value of text box a and text box b displayed in c?
I figured it out. Thank you so much. I'm kidding. My brain is short-circuited. Just use this and ID.
Is the value of text box a and text box b displayed in c?
Yes, the added sum is displayed in C
My question is: the ID of the text box changes, so it is very troublesome to get the value of the text box based on the ID. I wonder if there is any other method. Thank you
There should be a rule that can be obtained, you can post part of the html
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn