Is there a way to send text to an aspcontrol via jquery
- by Garrith Graham
Is there a way to send data to an aspcontrol say a label called label1? Via jquery?
I know jquery only likes html but is there a way to just send the raw text to an asp control using a similar method below:
<script type="text/javascript">
$(document).ready(function ()
{
var label = $("#<%= testLabel.ClientID %>");
var div = $("<div></div>").html("content").attr('id', 'test');
var serializer = new XMLSerializer();
label.text(serializer.serializeToString(div));
});
</script>