Posts by K. Nathan • 56 points
3 posts
-
0
votes2
answers467
viewsQ: How to put a json returned from an API within a select?
I am trying to make the credit card payment form, using the pay.me. I would like to calculate the installments via API and return them within a . I can return the json and return it to the…
-
2
votes2
answers161
viewsA: Pass value with discount to Pagseguro
Use the method: setExtraAmount() passing a negative value in the parameter. Example: $boleto->setExtraAmount(-10.00); This way it will automatically add the discount to the total cart of the…
-
1
votes3
answers953
viewsA: How to simulate the event click on a <select> when hovering over a <div>?
tries to use this function: $('select').hover(function() { $(this).attr('size', $('option').length); }, function() { $(this).attr('size', 1); }); demo: http://codepen.io/anon/pen/avdavQ…