George J George J - 6 months ago 19
jQuery Question

Uncaught SyntaxError: missing ) after argument list (with .css())

I have this jQuery code:

<script>
$(document).ready(function(){
$("#main").css("column-count":2);
});
</script>


Console points to this string:
$("#main").css("column-count":2);

Answer

Try :

$("#main").css("column-count",2);
Comments