With jQuery version 1.2.3 I'm trying to add nodes after textarea elements with attribute 'maxlength' but it doesn't work:
$("textarea[@maxlength]").after("<b>Aint working</b>");
This is the HTML code:
<textarea maxlength="500">This is a test.</textarea>
<textarea maxlength="250">Yet another line.</textarea>
<textarea maxlength="125">Bar or foo, whatever.</textarea>
The odd thing is, if I change the attribute maxlength
with e.g. rel
than it works just fine!
Check out this real life example: http://www.host2000.be/_temp/jquery_tests_counter.html
PS: I'm aware of the [@attribute] notation which is no longer supported in jQuery 1.3, but this has nothing to do with the problem.