Thursday, July 15, 2010

ASP.Net hidden fields and XUI

After fiddling around with XUI, I realized that there is no function within to retrieve the hidden input values similar to jQuery.

Thus, the hacked way around it is to declare a HTML tag, eg: a span, paragraph or even div and make the CSS display style as hidden.

You will also have to assign it a class and then you will be able to obtain it using XUI and plain ol' javascript by using the XUI selector and then adding .elements[0].innerHTML to the end of it.

NOTE: Javascript is case sensitive and innerHTML doesn't work if you'd typed it innerHtml

No comments:

Post a Comment