Thanx Nathan,
It works. It does change the class to the #family form. Is it possible
to make it change the class to the Option element?
option class=option value=Georgia label=GeorgiaGeorgia/
option
option class=option value=Times New Roman label=Times New
RomanTimes New Roman/option
option
On Wed, Jan 20, 2010 at 11:20 AM, Mircea i...@amsterdamsat.com wrote:
Thanx Nathan,
It works. It does change the class to the #family form. Is it possible
to make it change the class to the Option element?
You mean style the option element?
function setFamily() {
$('#family
Sorry,
function setFamily() {
$('#family').css('font-family', $('#family :selected').val());
}
$(#family option).each(function() {
$(this).css('font-family', $(this).val())
});
setFamily();
$('#family').bind(change keypress, setFamily);
http://jsbin.com/agifi/2/edit
Nathan
Thanx a lot Nathan!
It works like a charm.
All the best
4 matches
Mail list logo