jquery escape square brackets to select element

前端 未结 6 1421
余生分开走
余生分开走 2021-01-03 04:55

Consider a input element


Here the input field is dynamically generat

6条回答
  •  感动是毒
    2021-01-03 05:47

    The simplest way is just to use the regular getElementById, which requires no escaping:

    document.getElementById("meta[152][value]").value;
    

提交回复
热议问题