çalışmıyor bu HTMLjQuery değiştirme fonksiyonu bu çalışma almak gibi olamaz
<select class="titleother">
<option value="1">1</option>
<option value="2">2</option>
<option value="Other">Other</option>
</select>
<p class="hiddentext" style="display:none">TEXT</p>
herhangi bir fikir için olması gerektiği
$('.titleother').change(function() {
if ($('.titleother').val() == 'Other') {
$('.hiddentext').css('display','block')
}
})
gibi görünüyor?
$(function() {
$('.titleother').change(function() {
if ($(this).val() == 'Other') {
$('.hiddentext').show();
}
});
});
Elbette öyle değil [eser] (http://jsfiddle.net/amuec/)? – jensgram
Bu benim için çalışmıyor gibi görünüyor? –
yerine ($ ('. Titleother'). Val() == 'Diğer') $ ('hiddentext'). Css ('ekran', 'blok') daha iyi bir yoldur: $ ('.hiddentext'). toggle ($ (this) .val() == 'Diğer'); – Floyd