I wondered the same thing,,, I wouldn't have slashes in my ids... but
he is working with others who  have disregarded standards... It's nice
that JQ can handle messy htmls, instead of just well formed xhtml. I
bet xsl would just plotz!


On 10/7/06, Su <[EMAIL PROTECTED]> wrote:
> I'm curious: Why is everybody trying to "fix" the selector problem,
> rather than pointing out the ID is invalid in the first place?
>
> Dexter: Get rid of the slash altogether. Problem solved.
>
> You might be able to work around this with the various suggestions
> others have made, but if your document isn't valid before you start
> applying scripting, you've leaving the door open for future problems.
>
>
>
> [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
> > discuss@jquery.com
> > http://jquery.com/discuss/
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to