Hi Ricardo
sorry for the late reply, was away for the weekend :-)
thanks again for the explenation and the links =)
take care and have a good week :-)
Gerald
ricardobeat wrote:
You're welcome!
'readOnly' is the DOM property, not the attribute - these are (to some
extent)
Thanks a lot Ricardo :handshake:
That both worked =)
But I have to admit that I dont know why .readOnly works.:confused: couldnt
find anything like that in the docs and thought that you always have to
select attributes with [..] or .attr(..) Is this an officially working
function?
Thanks :-)
also to note
$(input[readonly]) should also work as that sector says give me all
inputs that have the attribute read only, and it doesn't matter what
the value is, just that it's there
On Mar 13, 4:00 am, ggerri gerald.ressm...@ewz.ch wrote:
Thanks a lot Ricardo :handshake:
That both worked
works in IE6 but not in FF3... thats the problem. these stuff used to work
fine in 1.2.6 but since 1.3.2 jquery is not handling 'readonly' properly
anymore. guess this got messed up in the process of removing all the browser
sniffing from jquery...
at least i have a working woraround now :-)
You're welcome!
'readOnly' is the DOM property, not the attribute - these are (to some
extent) separate things. It's in the HTML4 and DOM Level 1 specs:
http://www.w3.org/TR/2000/WD-DOM-Level-1-2929/level-one-html.html#ID-6043025
You're returning the object you created, so that will always be true.
Return the .length property and it shoud work:
$.extend($.expr[':'],{
readonly: function(a) {
return !!$(a).filter('[readonly=true],
[readonly=]').length;
}
});
But a simpler/faster/safer alternative is the
6 matches
Mail list logo