01.
<
html
>
02.
03.
<
meta
http-equiv
=
"x-ua-compatible"
content
=
"ie=edge"
>
04.
<
meta
charset
=
"utf-8"
>
05.
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"
></
script
>
06.
<
link
rel
=
"stylesheet"
href
=
"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.css"
>
07.
08.
<
script
src
=
"mysql-7-access.js?002"
></
script
>
09.
10.
<
head
>
11.
<
script
>
12.
13.
$(function(){
14.
15.
var count = getFieldCount( "社員マスタ" );
16.
17.
for( var i = 0; i <
count
; i++ ) {
18.
19.
$("<span>")
20.
.appendTo( $("body") )
21.
.text("タイトル")
22.
;
23.
24.
$("<
input
>")
25.
.appendTo( $("body") )
26.
.css( {
27.
"background-color": "skyblue",
28.
"color": "white"
29.
})
30.
.prop( {
31.
"value": "",
32.
"id" : "fld" + (i+1)
33.
})
34.
;
35.
36.
$("<
br
>")
37.
.appendTo( $("body") )
38.
;
39.
40.
}
41.
42.
});
43.
44.
45.
</
script
>
46.
</
head
>
47.
<
body
>
48.
49.
50.
51.
52.
53.
</
body
>
54.
</
html
>