Dhruva Sagar wrote:
Well I have made some changes to the test.html to achieve the desired
results :

<html>
  <head>
    <title></title>
    <script src="http://code.jquery.com/jquery-latest.pack.js";
type="text/javascript" language="javascript" charset="utf-8"></script>
    <script type="text/javascript" language="javascript" charset="utf-8">
      // <![CDATA[
        $(document).ready(function() {
            $('#another').click(function() {
              var id = "word" + $('input').length
              $('input:last').after('<label for="' + id + '"></label><input
type="text" name="' + id + '" id="' + id + '" value="" size="50" />');
              return false;
            });
        });
        // ]]>
      </script>
  </head>
  <body>
    <label for="word">Texto:</label>
    <input type="text" name="word" id="word" value="" size="50" />
    <a href="" id="another">Adicionar criterio</a>
  </body>
</html>

This will achieve what you want.
Thanks & Regards,
Dhruva Sagar.


Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html>
- "I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend."

On Tue, Nov 3, 2009 at 9:08 AM, ReynierPM <rper...@uci.cu> wrote:



Thanks a lot, it works perfectly

--
Saludos
ReynierPM

Reply via email to