Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在jQuery中使用带隐藏或显示的幻灯片?_Jquery_Html_Css - Fatal编程技术网

如何在jQuery中使用带隐藏或显示的幻灯片?

如何在jQuery中使用带隐藏或显示的幻灯片?,jquery,html,css,Jquery,Html,Css,我正在尝试做一些动画,但它不起作用 没有幻灯片效果,一切正常,但当我使用幻灯片,它打破了我的代码和动画不工作。我做错什么了吗 我的代码: ('.answer_按钮a')。在('click',函数(e)上{ e、 预防默认值(); $('.selected') .find('输入') .val($(this).hasClass('nu')?'nu':'da')) (完) .removeClass('选定') .hide('幻灯片'{ 方向:“左” }, 1000) .nextAll('quest

我正在尝试做一些动画,但它不起作用

没有幻灯片效果,一切正常,但当我使用幻灯片,它打破了我的代码和动画不工作。我做错什么了吗

我的代码:

('.answer_按钮a')。在('click',函数(e)上{
e、 预防默认值();
$('.selected')
.find('输入')
.val($(this).hasClass('nu')?'nu':'da'))
(完)
.removeClass('选定')
.hide('幻灯片'{
方向:“左”
}, 1000)
.nextAll('question')。第一个('slide'{
方向:“左”
},1000)。show().addClass('选定');
});

国际贸易区1号

Intrebarea 2

国际机场3号

国际贸易区4号

国际五区


在问题中添加HTML代码,您的代码片段不显示anything@Tushar,我添加了HTML代码。是的,您添加了,但现在JS代码不完整。添加完整的代码。当您调用此函数时?添加了完整的JS代码。