cyclops1101
cyclops1101

Reputation: 432

Problems running jQuery in Quickbase

I'm trying to get jQuery to run on Quickbase. I've run this code in jsfiddle and it works fine. It's really simple code to test out the html pages in Quickbase. I am currently using the built in html pages option and adding the code below but the scripting does not work. What am I missing?

<style>
.test{
color:blue;
}
</style>

<body>
<h1 class="test">
test
</h1>

<div id="mydiv"></div> 

<script type="text/ javascript">
var version = $().jquery;
$("#mydiv").html("QuickBase is using jQuery version " + version);
</script>

<script type="text/javascript">
$('document').ready(function(){
    $('h1').css('border','solid 2px red');
});
</script>
</body>

Upvotes: 1

Views: 541

Answers (1)

cyclops1101
cyclops1101

Reputation: 432

Even though QuickBase says that jQuery is on by default in the code pages that can be built you will still have to call it in each page should you need it.

Upvotes: 1

Related Questions