Title: Optionspanel, jQuery wont execute
Last modified: August 20, 2016

---

# Optionspanel, jQuery wont execute

 *  [mYrAn](https://wordpress.org/support/users/myran/)
 * (@myran)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/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.

 * 0 replies
 * 1 participant
 * Last reply from: [mYrAn](https://wordpress.org/support/users/myran/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/optionspanel-jquery-wont-execute/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
