Jump to content

joaogl

New Members
  • Posts

    3
  • Joined

  • Last visited

joaogl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I'd like to know how could I make a form with infinite elements and send it to mysql. Example: <div class="templatemo-input-icon-container"> <i class="fa fa-info-circle"></i> <input type="text" class="form-control" id="name" name="sname" value="<? echo $dataname; ?>" placeholder="Person name"> </div> I have this code which I can very easily put to work and send the sname value to a mysql database. My problem now is that I don't know how many persons the user whats to add, for that reason I'd like to add a button called Add Person, and if the user clicks it, it will appear like a new copy of this div. I've seen on the google that I can use HTML DOM createElement() to create this textboxes, but, if I do, how can I get their values if I don't know their name's or id's etc? and also how could I create an Element with classes? PS: I'd like to make this without having to reload the page. Thanks, Joao Lourenco.
  2. And how can I do that?
  3. Hello, I'm trying to make a check every second to see if the checkboxes are true or false. Goal: Have one checkbox, if its true then shows two more checkboxes so a total of 3 textboxes. If false there is only one checkbox showing. How can I do this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.