No, that doesn't work, and I'm assuming it has something to do with the
forward slash being an XPath selector.
m.
On Fri, 2006-10-06 at 17:21 -0400, Wil Stuckey wrote:
> couldn't you just do:
>
> $('#foo/bar').val();
>
> ?
>
> -wil
>
> On 10/6/06, Matt Grimm <[EMAIL PROTECTED]> wrote:
> Your problem is that you prefixed the input selector with "#".
> This
> works:
>
> $('[EMAIL PROTECTED]/bar]').val();
>
> On Fri, 2006-10-06 at 15:00 -0400, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > if I have a form like
> >
> >
> >
> > <form>
> >
> > <input type="text" value="test" id="content/mytest"/>
> >
> > </form>
> >
> >
> >
> > How can I get the value for the input text field using
> jquery?
> >
> > I tried
> >
> >
> >
> > <script type="text/javascript">
> >
> >
> >
> > $(document).ready(function(){
> >
> > var a = $("[EMAIL PROTECTED]'content/mytest']");
> >
> > alert(a.val());
> >
> > });
> >
> >
> >
> > </script>
> >
> >
> >
> > but it does not work. Thanks
> >
> >
> >
> > _______________________________________________
> >
> >
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/