This is really bothering me and I can't figure out how to solve this problem. My code that is creating the problem is this:
$("#add-warmup").click(function(){
$("#warmup").empty().prepend('<td><input type="text" name="distance-warm" maxlength="7" size="4"> miles</td><td><input type="text" name="duration-warm" maxlength="8" size="8" placeholder="HH:MM:SS" /></td><td>Warmup<input type="hidden" name="type-warm" value="Warmup" /></td><td><select name="shoe-warm"><option value=""><?= str_repeat(' ', 12); ?></option>></select></td>');
>});
I just want to click a link and have the current row replaced with actual value for input, but I keep getting the Unexpected token <
error on the first part of the quote. Things as simple as .prepend('<p> test</p>');
work but this doesn.t