Help edit jQuery script
$(function(){ $('#order').bind('change',function(){ $('#order_price').html($('#order option:selected').attr('title')); }); });
This script adds to the block with the #order_price
value from the title
attribute of the option
tag. But the problem lies in the fact that the script is triggered on the condition that the options are switched, and therefore, if the selected
attribute is set for option, then nothing is displayed in the block. How to make it appear immediately?