I have the following textarea:
<textarea cols="50" rows="4" id="textbox" onkeyup="limitArea(this, 255, '')"></textarea>
What i need it the onkeyup function to instead read onkeyup="limitArea(this, 150, '')" -- the problem is, I can't edit this part of the code directly.
I tried this with no success:
$('textarea[onkeyup="limitArea(this, 255, \'\')"]').attr('onkeyup', 'limitArea(this, 255, \'\')');
Any other ideas?
$("#textbox")$("#textbox").on('keyup', ...);