Get the radio button value through ajax to php file
问题 After clicking the radio button, the value from the radio button is not being passed when the onclick event is triggered. Here is my code: <form name="Form1" id="color" style="font-size: 100%" action="#"> <input type="radio" name="radio1" id="radio1" onclick = "MyAlert()" value="blue"/>Blue <br /></p> <p> <input type="radio" name="radio1" id="radio1" onclick = "MyAlert()" value="red"/>Red </form> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min