maybe something like this?
$(function(){
$('#type').change(function(){
var selected = $(this).children().filter(':selected');
if(selected.val()=='parttime'){
$('#numOfHours').show();
}else{
$('#numOfHours').hide();
}
});
});
This is untes
solution:
$('#type').change(function() {
if($('#type :selected').val() === "parttime") {
$('#numOfHours').show();
} else {
$('#numOfHours').hide();
}
})
this is what i have now
$('#numOfHours').hide();
$('#type').change(function() {
if($('#type :selected').text() == "parttime") {
$('#numOfHours').show();
} else {
$('#numOfHours').hide();
}
On Feb 17, 2:08 pm, 123gotoandplay wrote:
> How do i show
3 matches
Mail list logo