i want addition some inputs, radio buttons etc from fluent forms plugin in wordpress.
But im struggling with problem that i have 4 buttons each of them have different value, but in result still showed me number from first option. Please how i get right number from option on click?
i use this script
jQuery(document).click(function()
{
var a = jQuery("input[name='typ_podorysu']").attr("data-calc_value");
var d = a;
jQuery("#result").text(d);
console.log(d)
});
thanks for any advice
2
Answers
This is a simplified example based on your code.
If you find that you need to use event delegation you can use this method: