I am currently in the process of setting up an HTML form to trigger an AJAX update when a user exits a field. My current attempt is focusing on one table cell and it looks like this:
<td><input type="text" class="form-control" id="firstName" name="firstName" onchange="updateRecord(1E1DDA14-D2C6-4FC8-BA5F-DBCCC7ABAF7F)" value="John Terry"></td>
Unfortunately, I am encountering an error that reads:
SyntaxError: At least one digit must occur after a decimal point
If I modify the cell to something like this:
<td><input type="text" class="form-control" id="firstName" name="firstName" onchange="updateRecord(12345)" value="John Terry"></td>
it does work. However, I require the longer ID string for database updates and cannot alter its format.
As someone new to JavaScript and AJAX, I am unsure about what could be causing issues with the longer string. There are no decimal points visible either.