【发布时间】:2011-09-15 10:33:59
【问题描述】:
我使用 codeigniter,但我的 JS 代码不起作用!谁能指导我?
<select name="tour_name" style="display: none; ">
<option disabled="disabled" value="">select</option>
<option>hello</option>
<option>hi</option>
<option>what</option>
<option>how</option>
</select>
<div id="#tour_name">
JS:
$(document).ready(function () {
$('select[name="tour_name"]').change(function () {
$('#tour_name').empty();
var $val = $(this).val();
$(this).hide();
$('#tour_name').hide().fadeIn('slow').append('<b>' + $val + '</b>')
$('#tour_name b').click(function () {
$('#tour_name').empty();
$('select[name="tour_name"]').fadeIn('slow')();
})
})
});
【问题讨论】:
标签: javascript jquery codeigniter caching