how to print div content?

how to print div content?

I am trying to use jQuery to print DIV content (Print on a printer)


here is what i am doing but it is not working

  1. <script>
  2. $("#print").click(function() {
  3.       $("#fullContract").printElement();
  4. });
  5. </script>