this might have been answered already, but I don\'t think this particular question has been answered.
I have a dropbox (select & option) and I want to display the va
Something like this ?
Bootply : http://www.bootply.com/128894
JS :
$('#inputmsgType').on('change mouseleave', function(){
$('#inputmsgType option').each(function(){
$(this).html( $(this).attr('desc') );
});
$('#inputmsgType option:selected').html( $('#inputmsgType option:selected').attr('value') );
});
$('#inputmsgType').on('mouseover', function(){
$('#inputmsgType option').each(function(){
$(this).html( $(this).attr('desc') );
});
});
HTML :