This was identified about a week ago:
http://dev.jquery.com/ticket/1363

We're checking into it and should have a fix in place by 1.1.4 (which
should be coming out soon).

--John

On 7/13/07, Renaud <[EMAIL PROTECTED]> wrote:

Hello,

I'm not sure I'm missing something in the documentation but I've
upgraded jquery to 1.1.3.1 and it seems that the inline events set in
the html are not triggered when calling trigger().

Example:

$(document).ready(function() {
   $('#test').trigger("change");
    $('#test2').click(function() { $('#test').trigger("change");
alert('bleh'); });
});
....
<p id="test2">boooo</p>
<select onchange="alert('bleh');" id="test">
    <option>1</option>
    <option>2</option>
</select>

When using 1.1.2, the alert pops up when loading the page and when
changing the select value. In 1.1.3, it won't popup on page load nor
on clicking #test2, only when changing the select.

Am I missing something? I know one shouldn't use inline event
registration but it's a legacy application I'm slowly moving to
jquery.

If it's a normal behaviour since 1.1.3, how could I programmatically
trigger what's in the inline event?

Thanks!

Kind regards,
Renaud


Reply via email to