$(window).resize(function(){
if ( $("#jq-mq-flag ").css("float") == "none") {
$('#featured').orbit(
{
captions:false
});
}//you forget }
});
jQuery if statement syntax with simple function [closed]
-
09-07-2023 - |
Question
I'm trying to modify a simple orbit.js setting (using zurb foundation 3 framework), with an if statement to hide captions responsively. The original on load function is working, the resize function isn't. I know I'm doing something fundamentally wrong - pray tell me what it is please?
$(window).load(function() {
$('#featured').orbit(
{
timer:false,
}
);
});
$(window).resize(function(){
if ( $("#jq-mq-flag ").css("float") == "none") {
$('#featured').orbit(
{
captions:false
}
);
});
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow