<a href="#!" onclick="myfunction({{x.value }})">button</a> Solution <a clickon="myfunction({{x.value}})" href="#!">button</a> <script> $(document).on("click", "[clickon]", function () { var y = $(this).attr('clickon'); setTimeout(y, 1) }); function myfunction(val){ alert(val) } </script> if this post was helpful for u pls drop comment in comment box and subcribe to web2tags
Comments
Post a Comment