Updating label using jquery and code behind
- by Zaps
Hi,
I have a label on a page and I'm updating the text property of the label when text is changed in a textbox.
I'm updating the label like so:
$myLabel.text("hello");
The text is being displayed correctly on the screen butwhen I try to save the text value to an object in the code behind (When I press a button) the text property of the label is "" and not "hello".
var myLabel = myLabel.Text;
//the var myLabel is "" when it should be "hello"
Any ideas as to why this would be?
Thanks in advance,
Zaps