Other text input for checkboxes | Community
Skip to main content
Diego_Lineros2
Level 5
May 30, 2019
Solved

Other text input for checkboxes

  • May 30, 2019
  • 2 replies
  • 4946 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
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!