In the following code,
<script>
function val()
{
//get alltextarea to validate
}
$(document).ready(function() {
var html= '<form>'
html += '<textarea name="test" id="test"';
html += '<textarea name="test1" id="test1"';
html += 'form';
$('#get_div').append();
});
</script>
<div id= "get_div"></div>
<input type="button" onclick="val();"
The two textareas are dynamically generated.Now how to validate it in function val.When i do $('#test').val() or document.getElementbyId(test).value I could not find the values of the textareas
Thanks..