SOLVED

Other text input for checkboxes

Go to solution
Highlighted

Other text input for checkboxes

Hi, I have a form with a few set of checkboxes all of them with the option Other. I need for each "other" option to have a text field without using more database fields. I thought... well lets modify the field with somenthing like this... $("input[value='Other']").prop({type:'text', value:''}).click(); but the form wouldn't post the new value. Any ideas out there?

Thanks community

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Other text input for checkboxes

Your selector isn't granular enough. But anyway, I already blogged about this: https://blog.teknkl.com/forms-add-other-option-without-new-field/ 

View solution in original post

2 REPLIES 2
Highlighted

Re: Other text input for checkboxes

Your selector isn't granular enough. But anyway, I already blogged about this: https://blog.teknkl.com/forms-add-other-option-without-new-field/ 

View solution in original post

Re: Other text input for checkboxes

Aha, I would never thought about using a html place holder to add a textarea and grab the value from there, well thought! kudos. I was dying converting a checkbock into a textarea!