Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!