Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
Is there a select-option version of div contenteditable?

I am inserting a small editable select-option in a html form. But i don't want to send it. So i need a select-option version of this

<div contenteditable="true">
  This text can be edited by the user.
</div>

Something like that

<div select="true">
  <div option="true"></div>
  <div option="true"></div>
  <div option="true"></div>
</div>

Is there a an easy way to achieve it without using js?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you just have a normal select with some options but don't have a name attribute the selected option will not be submitted:

  <select>
  <option>a</option>
  <option>b</option>
  </select>

So the select can be contained within, and formatted as part of, the form element with no problem,

If you have a name attribute but with an empty name string then it seems browsers will submit the value but with nothing before the =

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda