Skip to content

Magento2 How to get Customizable dropdown Options of a simple product in phtml file

How to get this https://prnt.sc/HE4LFsRji9fs Customizable option data in a phtml file.
I want to data in like in this format…

<div class="field required">
            <label class="label" for="select_69">
            <span>Options</span>
            </label>
            <div class="control">
            <select name="options[69]" id="select_69" class=" required product-custom-option admin__control-select" title="" data-selector="options[69]" aria-required="true"><option value="">-- Please Select --</option><option value="192" price="30">straight charge +£30.00</option></select></div></div>