I want to create an input form with html and jquery, and automatically number the page in the "No" area every time it is called.

Asked 1 years ago, Updated 1 years ago, 38 views

You can create each item and call the input form in the form below.
"When this call is made, I would like to use the ""NO"" at the top, and I would like to have the reception number numbered ""1, 2, 3, ..."" for each call, so please let me know if there is any good way."

I'm a beginner at html and jquery, so I can't really focus on how to search.Thank you for your cooperation.

<!--Enter basic information-->
<divid='inputPage'>
<table>
<tr><!--NO-->
<th>NO</th>
<td><body onLoad="startFunc()">/body></td>
</tr>
<tr><!--Name -->
<th>Name<span class='req-mark'>Required</span>/th>
<td><input type="text" name="inName" class="inName" placeholder="example) Ichiro Yazaki">/td>
</tr>
<tr><!--Date of birth-->
<th>Date of birth<span class='req-mark'>Required</span>/th>
<td><input type="text" name="inBirthday" class="inBirthday" placeholder="example) 19850101">/td>
</tr>
<tr><!--Gender -->
<th>Gender<span class='req-mark'>Required</span>/th>
<td><input type="radio" name="inSex" class="inSex" value="man">man<inSex" name="inSex" class="inSex" value="woman">woman</td>
</tr>
<tr><!--Address -->
<th>Address</th>
<td><text>Please enter either a zip code or your current address.</text>
<label for="inPostalCode">Zip Code:</label>> input type="text" name="inPostalCode" class="PostalCode" placeholder="Example) 1112222">
<label for="inAddress">Current address:</label><input type="text" name="inAddress" class="inAddress" placeholder="Example) 〇 県 Prefecture ○○ City or 〇 区 Ward">
</td>
</tr>
<tr><!--Emergency Contacts-->
<th>Emergency Contacts<span class='req-mark'>Required</span>/th>
<td><input type="tel" name="inTelNumber" class="inTelNumber" placeholder="example) 0312345678" max="11">/td>
</tr>
<tr><!--what you're good at-->
<th>What I'm good at<span class='req-mark'>Required</span></th>
<td><select class="inSkill">
        <option value="Civil engineering">Civil engineering</option>
        <option value="cleaning">cleaning</option>
        <option value="Cooking">Cooking</option>
    </select></td>
</tr>
<tr><!--Traffic routes-->
<th>Traffic Path<span class='req-mark'>Required</span></th>
<td><select class="inUse">
        <option value="light track">light track</option>
        <option value="ban">ban</option>
        <option value="light vehicle">light vehicle</option>
        <option value="train">train</option>
    </select></td>
</tr>
<tr><!--- Email address -->
<th>Email address</th>
<td><input type="email" name="inMail" class="inMail" placeholder="example) [email protected]">
<label for="inPostalCode">Receive support requests:</label>
<input type="radio" name="checkRes" class="response" value="yes">yes<input type="radio" name="checkRes" class="response" value="no">No
</td>
</tr>
<tr><!--- Vehicle Information-->
<th> Vehicle Information </th>
<td><select class="inCar">
        <option value="light track">light track</option>
        <option value="ban">ban</option>
        <option value="light vehicle">light vehicle</option>
        <option value="etc">etc</option>
    </select><br></td>
</tr>
</table>
<div class="showCenter">
    <div>
        <input type="button" id="showBtn" value="QR code creation"/>br>
        <text style='text-align:center;color:red;font-size:small;'> ボタン Press the button to automatically save the image to the terminal.</text>
    </div>
</div>
</div>

html jquery

2022-09-30 17:38

1 Answers

It will be difficult to achieve full numbering with only the front end (HTML and javascript).

What is a typical numbering?
It needs to be provided in a fixed serial number without wearing it, but

HTML and jQUERY alone do not tell you how much others are accessing.

To achieve normal numbering

Using scripting languages and databases on the server side, Use the method of counting up when there is access.

It will be difficult to achieve with the front-end only because you need to store data centrally on the server to count up.

For example, you can display characters randomly so that they are hard to wear, but it would be difficult in theory if you ask me if I don't wear them at all.

If you are using the form, you may want to use it on the server side, so you should consider implementing it on the server side.


2022-09-30 17:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.