button in XSL for AJAX usage
- by phingko
Hi guys,
I wonder if its is possible to do AJAX when I put a button inside the xsl file;
<input type = "button" id="laptop" value = "Add to Cart" onclick="sendCartRequest('Add');" />
That's what I do in my xsl file then in my js file I pass the id to the DOM and try to alert it make sure it is passed.
And the alert appear to be empty.
…