The last .change() fires the event.

On Wed, Jan 6, 2010 at 6:43 AM, NotionCommotion <villasc...@gmail.com>wrote:

>
>
> I am interested in the event change, and am looking at
> http://docs.jquery.com/Events/change.
>
>  $("select").change(function () {
>          var str = "";
>          $("select option:selected").each(function () {
>                str += $(this).text() + " ";
>              });
>          $("div").text(str);
>        })
>        .change();
>
> It all makes sense except for the very last change().  Can anyone
> explain the purpose of this line?
>
> Thank you
>



-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/

Reply via email to