Reputation: 501
I have this simple code that works in FF32, but does not work in IE11. Why? Here is the code: http://jsfiddle.net/kaur/LjLhzd4g/
</tr>
<tr class="evenRow">
<td class="bold">Course Number</td>
<td><input type="text" id="course_number" name="UF-00300325672803" value="4159" size="8"></td>
<tr>
<button id="save">Click</button>
</tr>
$('#save').click(function () {
$(course_number).attr('readonly', true);
});
Upvotes: 0
Views: 56
Reputation: 1070
I've updated your fiddle so it actually has a chance to work at all: http://jsfiddle.net/LjLhzd4g/10/
I've tested this in IE11 and Safari.
The main problem was that $(course_number)
should be $('#course_number')
.
Upvotes: 1