Kaur
Kaur

Reputation: 501

Code that runs in FF does not work in IE 11

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

Answers (1)

Christian Pekeler
Christian Pekeler

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

Related Questions