Html – why JavaScript code i wrote is not working
Its my code in html : subscribe <label for="visaBtn">Visa</label> <input type="radio" name ="card" id="visaBtn"> <label for="mastercardBtn">MasterCard</label> <input type="radio" name="card" id="mastercardBtn"> <label for="paypalBtn">Paypal</label> <input type="radio" name="card" id="paypalBtn"><br> <button id="myCheckBox">submit</button> <script src="index.js"></script> body> Then I wrote this function on JavaScript but when…