I have the following line in a php file that grabs a value and returns it as a jQuery variable:
var HeaderWrapperHeightNEW = <?php if(get_theme_mod('header_image_full_size') != '1'){ echo get_theme_mod('header_height');}?>;
My problem is that sometimes the returned result has a letter unit after it, for example 600px or 50% - I just need it to echo the number and not the unit. Is this possible to do? And how would I do it?