I have a text input that is disabled using the disabled attribute, but I add input to it on the click of a certain classes.
On the click of class I (.I), I add a letter I to the existing text, if any, inside the input.
On the click of class O (.O), I add a letter O to the existing text, if any, inside the input.
However nothing seems to be happening when I click the classes.
Here is my code:
$('.I').click(function(){
$('#code').text($('#code').text()+"I");
});
$('.O').click(function(){
$('#code').text($('#code').text()+"O");
});
Here is a JSFiddel replicating the problem: http://jsfiddle.net/q3xBY/