Getting value in a TextBox after paste
<p>I have a scenario like this where i have dynamically generated textboxes.
I have to validate the textbox for max 15 characters and restricting special characters.</p>

<p>Below is the code by which in document.ready() i am generating the textboxes and binding 
paste events to them.</p>

<pre><code>$(document).ready(function(){

  //Generate textboxes..i have some logic by which i am generating
  //textboxes on the fly and giving textboxes a class flagText
  GenerateFlagBoxes();

  //i am binding the textboxes by class names
   var $flagArea = $('.flagText');
    $flagArea.bind('paste', function () {
        var element = this;
        setTimeout(function () {
            alert($(element).val());
        }, 100);
    });

});
</code></pre>

<p>But this is not working.The alert i provided is not coming.I think that the controls are created in the ready event can't
be bound to listen events.Am i wrong.I don't know why it is happening.
I want some suggestions.</p>

<p>Thanks in advance.</p>

<p>This fiddle is working.I am checking , i might be wrong some where.I will update where i 
am wrong;</p>

<p><a href="http://jsfiddle.net/mnsscorp/8QFGE/1/" rel="nofollow">http://jsfiddle.net/mnsscorp/8QFGE/1/</a></p>

<p>Yes now working .In the document ready i am able to bind paste event.I was wrong some where in the code. :)
Thanks for suggestions.</p>
