Reputation: 2941
Is this possible to have input type="text" as a value to radio button ?
I have 3 options on the input type radio button.
[ o Option 1, o Option 2, o Others ]
But instead of adding Others, I wanted it to be an <input type="text">
wherein people can add in a specific value if they click this.
Upvotes: 1
Views: 126
Reputation: 889
All your checkboxes should have name=something[]
in order to be sent to the server.
Add input type=text name=something[]
- it's value will be included into the form data.
Upvotes: -2
Reputation: 102
Actually it's not possible. But what you can do is. Take one textfield, make it hide. And when user clicks on other at that time show that textfield. Hope it will helps.
Upvotes: 3