Home >
Web Front-end >
JS Tutorial >
JS How to get the value of the radio after it is selected and the value of the radio when it is not selected_javascript skills
JS How to get the value of the radio after it is selected and the value of the radio when it is not selected_javascript skills
WBOY
Release: 2016-05-16 17:18:39
Original
1515 people have browsed it
The following is an article taken from the Internet (not tested but very standard and can be imitated)
var USD = document.getElementsByName("money")[0].nextSibling.nodeValue; var Yen = document. getElementsByName("money")[1].nextSibling.nodeValue; var euro = document.getElementsByName("money")[2].nextSibling.nodeValue;
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