論理演算子で If ステートメントを使用しているだけです。構文エラーが表示される理由がわかりません。
var divWidth = $("#columnwraper").width(); //getting the width of the div
$("#right-button").click(function() {
if (cursor != totalWidth && totalWidth !< divWidth) {
$box2.animate({
marginLeft : "-=300"
}, "fast");
cursor += 100;
}
// console.log(colwidth.width());
});
それを示している
[15:18:24.050] SyntaxError: 条件の後に ) がありません。
ここで何が間違っていますか?