I don't think it is correct to call this an attribute, as this implies
that you can specify it in the HTML (it is not an allowed attribute in
the W3C specification). It should be a cross-browser property of all
form elements though.
on 19/05/2008 15:54 Ariel Flesler said::
> No, you're right.
1.2.4 is available ... just not the release notes :)
http://code.jquery.com/jquery.js
--
Brandon Aaron
On Mon, May 19, 2008 at 9:54 AM, Ariel Flesler <[EMAIL PROTECTED]> wrote:
>
> No, you're right. Form elements (input, select, textarea, etc) do have
> a 'form' attribute. I think it's even cros
No, you're right. Form elements (input, select, textarea, etc) do have
a 'form' attribute. I think it's even cross-browser.
Your code WILL work with the new version (1.2.4) which will be
(hopefully) released soon.
If you want to verify this will work, you can get it by doing a
checkout:
http://c
Thanks all, it must be my misunderstanding of the dom.
If I understand correctly you are trying to reference the parent form
of the input field.
You should do it like this:
var form = $("#a").parent("form");
alert( form.attr("action"); );
On May 19, 3:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> This is my html:
>
>
>
> and javascript:
As the previous reply stated, there is no attribute "form" on the input
element, but there is a "form" property on the input object which can be
used to identify the form which the input is an ancestor of. If you need the
form object in your example, all you need to do is select it using
$('#myFo
It looks like you're just trying to get the action on the form?
$('#a').attr('action');
On May 19, 2:53 am, "Matt Quackenbush" <[EMAIL PROTECTED]> wrote:
> Unless I'm completely misunderstanding something here, that code should not
> "work" in any browser. There is no "form" attribute on an
>
Just like I dont specify a width or height attribute to input but it
actually has one, an input residing in a form automatically have a
'form' attribute whose value references the parent form, so I think it
should work.
Unless I'm completely misunderstanding something here, that code should not
"work" in any browser. There is no "form" attribute on an
element. What are you actually trying to accomplish?
On Sun, May 18, 2008 at 8:22 PM, wrote:
>
> This is my html:
>
>
>
> and javascript:
>
9 matches
Mail list logo