I’m try to change the label

How to change the label based on condition?

live change the label if user select a category

        <div class="inside">
          <div class="enter">
            **<label for="price"><?php _e('Price', 'beta'); ?></label>**

            <div class="input-box">
              <?php ItemForm::price_input_text(); ?>
            </div>
          </div>

 $('body').on('click change', 'input[name="catId"], select#catId', function() {
      var cat_id = $(this).val();
      var url = '<?php echo osc_base_url(); ?>index.php';
      var cat = 31;
      var result = '';

if (cat == cat_id){
$(".price").text("Free");
}else{
$(".price").text("Price");
}