<script type="text/javascript">
function filterElements() {
$("#<%=TabContainer1.ClientID %>").find("input[type=text]").each(function () {
val = $(this).val();
val = val.replace(/^[,\s]+|[,\s]+$/g, '').replace(/,[,\s]*,/g, ','); //replace(/\b,/g,"");
$(this).val(val);
});
$("#<%=TabContainer1.ClientID %>").find("textarea").each(function () {
val = $(this).val();
val = val.replace(/^[,\s]+|[,\s]+$/g, '').replace(/,[,\s]*,/g, ','); //replace(/\b,/g,"");
$(this).val(val);
});
//alert($("#<%=TabContainer1.ClientID %>").find("input[type=text]").size());
}
</script>
2 comments:
nice post
nice information
Post a Comment