当前位置:网站首页>How to change input into text
How to change input into text
2022-04-23 17:14:00 【ZHZHK001】
The original state
<div class="form-group">
<label class="col-sm-3 control-label"> materiel ID:</label>
<div class="col-sm-8">
<input name="goodsId" th:field="*{goodsId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"> supplier ID:</label>
<div class="col-sm-8">
<input name="supplierId" th:field="*{supplierId}" class="form-control" type="text">
</div>
</div>
Modified state
<div class="form-group">
<label class="col-sm-3 control-label"> name :</label>
<div class="col-sm-8">
<p class="form-control-static" th:text="*{goodsName}"></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"> specifications :</label>
<div class="col-sm-8">
<p class="form-control-static" th:text="*{goodsSpec}"></p>
</div>
</div>
It's mainly about
< input name=“goodsId” th:field=“*{goodsId}” class=“form-control” type=“text”>
Change to
< p class=“form-control-static” th:text=“*{goodsSpec}”>
版权声明
本文为[ZHZHK001]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230553251062.html
边栏推荐
- Clickhouse SQL operation
- 1-3 nodejs installation list configuration and project environment
- Shell-入门、变量、以及基本的语法
- 自定义my_strcpy与库strcpy【模拟实现字符串相关函数】
- ASP. Net core JWT certification
- [logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
- 2.Electron之HelloWorld
- ClickHouse-表引擎
- Node access to Alipay open platform sandbox to achieve payment function
- Using quartz under. Net core -- a simple trigger of [7] operation and trigger
猜你喜欢
[WPF binding 3] listview basic binding and data template binding
Detailed explanation of Milvus 2.0 quality assurance system
Webapi + form form upload file
Nacos + aspnetcore + Ocelot actual combat code
Shell script -- shell programming specification and variables
2. Electron's HelloWorld
Milvus 2.0 质量保障系统详解
01-初识sketch-sketch优势
Scope and scope chain in JS
快时钟同步慢时钟域下的异步控制信号slow clk to fast clk
随机推荐
快时钟同步慢时钟域下的异步控制信号slow clk to fast clk
EF core in ASP Generate core priority database based on net entity model
VLAN高级技术,VLAN聚合,超级Super VLAN ,Sub VLAN
websocket
oracle 中快速获取表的列名列表
Generate random numbers with high quality and Gaussian distribution
【解决报错】Error in v-on handler: “TypeError: Cannot read property ‘resetFields’ of undefined”
Kingdee Cloud Star API calling practice
Go language, array, string, slice
Deep understanding of control inversion and dependency injection
Go language RPC communication
Promise (III)
Understanding and small examples of unity3d object pool
BUG_ me
2.Electron之HelloWorld
Interface document yaml
Seven cattle upload pictures (foreground JS + background C API get token)
Preliminary understanding of promse
freeCodeCamp----shape_ Calculator exercise
ASP. Net core JWT certification