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

181
Views
How to change display none input inside form?

I have a button this name is manuel. When I click this button I want to change display:none property. Actually, its works but my element inside a form. When I click button form posted. I can't stop the post.

<div class="form-group">
  <input type="text">
  <button onclick="myFunction()" class="btn btn-primary btn-sm">Manuel</button><br>
  <input type="text" style="display:none;" id="hide1">
</div>
function myFunction() {
  document.getElementById("hide1").style.display = "block";
}

How to create input without form post?

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

0

Just change button type="submit" to type="button", so you can do display: none function and if you want to submit the form you can do it with javascript.

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!