I have a issue with an application and I have recreated the same issue by skinning down the code to the source of the problem. IE11 is returning an error in the console "'test1_1' is undefined"
This code works in Firefox so I need to understand why its not working in IE11. Hoping its something straight forward any help would be appreciated.
jQuery:
function testAlert(row,defect){
alert(defect);
};
HTML:
<form>
<div class="input-group">
<input type="text" id="test1_1" name="test1_1" style="width:150px" readonly="true" value="test">
<span class="btn btn-default btn-sm input-group-addon"
id="customer_search"
onclick="testAlert('1',$(test1_1).val());
">
test
</span>
</div>
</form>