我想隐藏一个没有'没有js文件中的id.我想不通,请告诉我

I want to hide a text box that doesn't have id from js file. I am not able to figure out, Kindly let me know

本文关键字:文件 没有 js id 告诉我 想不通 隐藏 一个      更新时间:2023-09-26

标题中有一个文本框,位于我想要隐藏的光滑网格中的复选框上方。这个文本框没有id,所以我不知道如何在没有id的情况下隐藏。

这是HTML部分

 <div id="figuresGrid">
        <div id="figuresByClassGrid" class="clearBg dispNone" style="width: 820px; height: 600px;"></div>
  </div>

这是Javascript部分

var figGridColumns = [
            { id: "A", name: resources.Number, field: "Number", sortable: true, width: 165 },
            { id: "B", name: "BOM", field: "BOM", width: 115 },
            { id: "C", name: resources.Class, field: "Class", width: 125 },
            {
                id: "updated",
                name: "Updated",
                field: "UpdatedDisplay",
                width: 165,
                formatter: function (row, cell, value) {
                    return "<span>" + value + "</span>";
                }
            },
            { id: "user", name: resources.User, field: "User", width: 165 }
        ];
        var gridOptions = { enableCheckBox: true, cssClass: "checkBoxStyle", showHeaderRow: true, enableCellNavigation: true, headerRowHeight: 30, filter: filter };
        viewByClassGrid = new gg.sacs.SlickGridWrapper("#figuresByClassGrid", figGridColumns, "FigureId", "Number", gridOptions, figFilters);

我想隐藏的文本框显示在标题行的数字字段之前。

find是该文本框的任意类。

将类添加到该文本框中,然后您就可以随心所欲了。