I’m in my _Layout.cshtml
page. I’m trying to manipulate my menu bar using css and jquery.
Here’s what I’m trying to do.
<script type="text/javascript">
$(document).ready(function () {
var varElement = document.getElementsByTagName("var");
for (var i = 0; i < varElement.length; i++) {
varElement[i].style.fontSize = ".75";
}
});
</script>
My problem is when I get to varElement[i]
. I expected to see style in my intellisense but style is not in the list of properties. The only items available in the intellisense list are:
Constructor
hasOwnProperty
isPrototypeOf
propertyIsEnumerable
toLocalString
toString
valueOf
How do I get JQuery to access my css style?