Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
How to get the value from getElementbyId into input box

I am having this code below

function jsmeOnLoad() {
  document.getElementById("jsme_container").style.display = "none"
  jsmeApplet = new JSApplet.JSME("jsme_container", "380px", "340px", {
    "options": "oldlook,marker,markAtomOnly,nocanonize"
  });        
  jsmeApplet.setCallBack("AfterStructureModified", show_smiles);
}
 
//jsmeApplet.setNotifyStructuralChangeJSfunction("show_smiles");
                
var patt = /\[([A-Za-z][a-z]?)H?\d*:\d+\]/g; //regexp pattern for numbered atom
function show_smiles(event) {
  smiles = event.src.smiles(); //atom that are colored are numbered
  new_smiles = smiles.replace(patt, '<em>$1</em>');
  document.getElementById("smiles_container").value = new_smiles
}
<input type="text" placeholder="Enter the Solute Molecule here" name="solute" id='smiles_container' ><br> <br>

Even though I was calling using id=smiles_container I am not getting the out put in input box. please help

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda