PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

how to add dynamic label to dropdown(title of field object)

  1. eman100
    Member

    I've got dynamic population working, just need a quick answer on how I can change the label by using some of the post meta I have.
    Trying to display a dynamic price after the field/title/label?

    Posted 11 years ago on Thursday April 25, 2013 | Permalink
  2. eman100
    Member

    I got it, use jquery to replace label title. I just set a css class to my field and used
    '<script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery(".kidsprice label").html('<?php echo "Child(s) $" . get_post_meta( get_the_ID(), 'kid_price', true); ?>');
    });
    </script>'
    hope this may help someone someday.

    Posted 11 years ago on Thursday April 25, 2013 | Permalink
  3. David Peralty

    Glad you found a solution that works for you. All my best!

    Posted 11 years ago on Friday April 26, 2013 | Permalink