How to print the contents of a web form

0

I am trying to print the content of a form on my web page, for now I am doing it in the following way:

<input type="button" id="btnBuscar" class="btn btn-primary" 
value="IMPRIMIR" onclick="javascript:print()" />

The problem is that in this way I printed the entire current page, and I would be needing only the group of label and input tags that are inside the form.

Thank you very much!

    
asked by Carlos 11.05.2017 в 23:10
source

0 answers