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

104
Views
Insert information into a specific cell - Enable HTML code with checkboxes

I need to run a code in HTML with checkboxes when the user triggers a specific cell, but i don't know how to do.

function onEdit(){}
<html>
    <head>   
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"></head>
 <body>
  <div class="container">
   <p>
     <label>
        <input type="checkbox" id="Obj" value="A&E"/>
        <span>A&E</span>
      </label>
    </p>
  </div>
    <div class="input-field col s12">
   <button class="btn waves-effect waves-light" id="btn">Adicionar
    <i class="material-icons right">send</i>
  </button>
  </div>
</div>
  </div>   
 <!-- Compiled and minified JavaScript -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
     <script> 

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you can add a event listener in the checkbox:

checkbox = document.getElementById("Obj").addEventListener("click",onEdit)

The addEventListener() method attaches an event handler to the specified element.

about 4 years ago · Juan Pablo Isaza Report
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!