that works great thanks!!
$('input:[EMAIL PROTECTED]').filter(function() {
return $(this).attr('onclick').indexOf('confirm') >= 0;
});
I added the [EMAIL PROTECTED] to the selector to prevent the indexOf from
failing
in the case that there is no onclick attribute.
Klaus Hartl wrote:
>
seedy wrote:
I do see that the typeof returns 'function'. Does this mean it will never
work with *= ?
Of interest, if I change that function like so:
$('input:image').each(function() {
alert(typeof $(this).attr('onclick'));
});
It alerts 'string'. Not sure if that is helpful just thou
I do see that the typeof returns 'function'. Does this mean it will never
work with *= ?
Of interest, if I change that function like so:
$('input:image').each(function() {
alert(typeof $(this).attr('onclick'));
});
It alerts 'string'. Not sure if that is helpful just thought it was
inte
Klaus Hartl wrote:
seedy wrote:
When I try to use a wildcard to search for characters in an onclick
attribute
it doesnt appear to work.
I think this syntax is correct
$('input:[EMAIL PROTECTED]')
I know there is a bug with onclick in 1.1.3.1, is this somehow related?
I assume that you c
seedy wrote:
When I try to use a wildcard to search for characters in an onclick attribute
it doesnt appear to work.
I think this syntax is correct
$('input:[EMAIL PROTECTED]')
I know there is a bug with onclick in 1.1.3.1, is this somehow related?
I assume that you can't just parse the con
5 matches
Mail list logo