I guess $('input').attr('id'); [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/