Optionspanel, jQuery wont execute
-
Hi.
Im making an optionspanel for a theme im developing. However, when i try to use a jQuery function for a valueslider i use, it does not get executed.. The jQuery code is:
<script type="text/javascript"> jQuery(document).ready(function($) { var getvalue_h1 = $( "#modmin-h1" ).attr("value" ); $( "#mm-h1" ).slider({ range: "min", value: getvalue_h1, min: 10, max: 30, slide: function( event, ui ) { $( "#modmin-h1" ).val(ui.value); $( "#v-h1" ).html(ui.value + "px"); } }); $( "#v-h1" ).html($( "#mm-h1" ).slider( "value" ) + "px"); }); </script>When i run this, the only thing that happens is that it outputs “[object Object]px” in the v-h1 div.. It works flawlessly in my HTML file 🙁 Anyone know whats wrong? Thank you so much in advance!
The topic ‘Optionspanel, jQuery wont execute’ is closed to new replies.