You can achieve this by using jQuery and AJAX to dynamically update the price based on the selected quantity.