php - How do I change button name onselect? -


i want add name="question" selected radio button. (and remove if user selects other). how can it?

<input type="radio" value="female" />female  <input type="radio" value="male" />male 

thanks

you need check out jquery

http://api.jquery.com/attr/ http://api.jquery.com/css/

$("input[type='radio']").change( function() {     $(this).css('display' 'hidden');     $(this).attr('name', 'question'); }); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -