According to Firebug typeof $('form').attr('action');
is "undefined" in both cases. FYI: jQuery() returns and empty jQuery object when no elements match the selector. If you try to call a method on an empty jQuery object, then nothing will happen (because there is noting for jQuery to work with). On 6/21/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
a quick question: what does $("form").attr("action") returns if there is no form , or if the form has no action attribute ? null ? undefined? thank you Alexandre Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.472 / Base de données virus: 269.9.1/857 - Date: 20/06/2007 14:18
-- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com