George J George J - 7 months ago 24
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);