I have an issue getting data from select data attributes using jQuery. How can I get data from the data attribute?
<select>
        <option>select</option>
        <option data-unit="kg">1</option>
        <option data-unit="pc">2</option>
        <option data-unit="kg">3</option>
        <option data-unit="pc">4</option>
    </select>
                                    
                                Subscribe to the Email Newsletter
0 Answer's