Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a onclick="imprimirPDF(this)" class="a" value="1">
- <span class="menu-item-parent">Comprobante Cliente</span>
- </a>
- <script type="text/javascript">
- function imprimirPDF(id_imprimir) {
- if (id_imprimir.getAttribute('value') == '1') {
- console.log('entro if')
- } else {
- console.log('entro else');
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement