Jump to content

jQuery related fields loading


....

Recommended Posts

Hi Alejandro,

I am testing around a possible migration to Wordpress (needed for Woocommerce) from a Joomla website but i have a question related to the loading of the custom fields.

In the Joomla installation i am altering the existing numeric field to a range selector with:

<script type="text/javascript">
jQuery( document).ready(function() {
        $("#primary").css("background-color", "yellow");
		$('.jr_mhi51.jrInteger').attr({
			type: 'range',
			class: 'gradient blank',
			max: '5',
			min: '0',
			step: '1'
		});
        //alert('test');
});
</script>

The above code runs showing me the yellow background for #primary or the alert popup. But the custom field ".jr_mhi51.jrInteger" itself does not change after loading (which takes a small second after page load). Are the fields included by a function using lazy load or some other jQuery part which is overruling my code?

Jasper

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...