使用表中的数据自动填充文本框

发布于 2025-01-10 11:56:17 字数 517 浏览 2 评论 0原文

我有一个文本框,用于输入给定原木(木原木)的“铣削体积”。但是,我希望由相同的日志“初始量”自动填充该字段,该日志已从单独的表单填写并提交并存储在单独的表中,当用户单击时,如何引用相应的“初始量”文本框填写此文本框

<div class="row">
    <div class="col-md-4">
        <label>Volume (m<sup>3</sup>)</label>
    </div>
    <div class="col-md-8 form-group">
        <input type="text" class="form-control" name="milled_volume" required>
    </div>
</div>

I have a textbox for inputting the "milled volume" of a given log(wooden log). However I want to have this field auto filled by the same logs "initial volume" which is already filled and submitted in from a separate form and stored in a separate table, how can I reference the corresponding "initial volume" when a user clicks on the text box to fill in this text box

<div class="row">
    <div class="col-md-4">
        <label>Volume (m<sup>3</sup>)</label>
    </div>
    <div class="col-md-8 form-group">
        <input type="text" class="form-control" name="milled_volume" required>
    </div>
</div>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文