Hi there,
I am trying to reference table fields using jQuery in order to set the values, and change some attributes.
My fields include IDs with brackets in them e.g. Field106(1). Using jQuery in console I can set the values, however when I put the code in the CSS and Javascript section of forms it is unable to select using the same selector. I have also tried selecting with name, but the result is the same.
Here is my field example:
<input type="text" id="Field106(1)" name="Field106(1)" aria-label="Field106(1)" class="singleline required cf-xlarge user-success" required="True" maxlength="4000" default-val="Test" list="datalist106" data-list-focus="true" value="Test" vo="d">
These are my selectors that I have tried.
$('[id=Field106\\(1\\)]').val();
$("#Field106\\(1\\)").val();
$("input[name=\"Field106\\(1\\)\"]").val();
I am aware of the \\ rule for selectors with special characters, and as mentioned it works in Chrome Developer tools console to grab the value/change attributes etc. But no luck in LF forms. Help!