Skip to main content
Diego_Lineros2
Level 5
May 30, 2019
Respondido

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

Este tópico foi fechado para respostas.
Melhor resposta por SanfordWhiteman

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

2 comentários

SanfordWhiteman
Level 10
May 30, 2019

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

Diego_Lineros2
Level 5
May 31, 2019

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!