Vote count:
0
I'm trying to find a way to put this function within a document ready function in jquery:
$('#font').change(function(){
var selectedValue2 = $(this).val();
if (selectedValue2 === 'Standard') {
$('.3Dtxt').hide();
$('.inlinetxt').hide();
} else {
if (selectedValue2 === '3D') {
$('.3Dtxt').show();
$('.inlinetxt').hide();
}
$('#' + selectedValue2).slideToggle();
}if (selectedValue2 === 'Hiline') {
$('.3Dtxt').hide();
$('.inlinetxt').show();
}
$('#' + selectedValue2).slideToggle();
});
could someone please help me out please?
asked 20 secs ago
Aucun commentaire:
Enregistrer un commentaire