I've got the following code:
<apex:pageBlock title="Parameters" mode="edit" id="criteria">
<apex:includeScript value="{!URLFOR($Resource.jQuery, '/jquery-ui-1.11.4.custom/external/jquery/jquery.js')}" />
<apex:includeScript value="{!URLFOR($Resource.jQuery, '/jquery-ui-1.11.4.custom/jquery-ui.js')}" />
<apex:stylesheet value="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"/>
<script type="text/javascript">
j$ = jQuery.noConflict();
j$("#slider").slider(
{
value:50,
min: 0,
max: 200,
step: 1
});
</script>
<table cellpadding="2" cellspacing="2">
<tr>
<td style="font-weight:bold;">Number to display:<br/>
<div id="slider"></div>
</td>
</tr>
</table>
</apex:pageBlock>
If I place it at the start of the page outside the pageblock it works fine, however I can't see it once I nest it inside the pageBlock, inside the table tags.
Does anybody have any insight into why this may be? I've tried including the scripts and CSS just before the script so that the correct versions are in scope. Is jQuery UI not supported inside pageBlock elements