Attach click event dynamically as below on document ready [on hold]

75
May 19, 2017, at 6:53 PM

The web page has 30 buttons and I loop 30 times. But sometimes button 1 and 2 not working. the rests are working fine. Sometimes button 2 and 3 not working. The rests are ok. Please help.

<script>
$(document).ready(function () {
    for (var j = 1; j <= 30; j++) {
        $("#update_" + j.toString()).on("click", function () { CallFunction($(this).attr("value")); });
    } //For Loop end
});
</script>
READ ALSO
Setting CSS class to a specific div with specific style attribute

Setting CSS class to a specific div with specific style attribute

I'm currently redoing a website (http://wwwvins-de-fronton

81
Using AJAX to Send Data on Button Click

Using AJAX to Send Data on Button Click

I have a table with multiple columns (indexphp)

110
How to format a number to currency R$, or $ to R$?

How to format a number to currency R$, or $ to R$?

How Can I format a simple number or $ format to Brazilian currency R$ - Real? I tried some ways to do this like maskMoney() plugin (I think that working just for inputs) but unsuccessfully

94
createRecord with custom ID in emberjs 2.x and Firebase 3.x

createRecord with custom ID in emberjs 2.x and Firebase 3.x

Until now, I saved all my data with the following line of code:

94