George J George J - 1 year ago 71
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 Source

Try :

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