The essence of the question is:
there is a checkbox that is dynamically generated by javascript. You need to get it checked status. Actually the question is how to do this? :)

    1 answer 1

    var el = $("#checkbox_id"); el.attr('checked'); // true - если отмечен, false если нет 
    • if I’m selected, returns checked, if not selected - undefined. :) Well, in other matters, the main thing that works. thank. :) - Eugene
    • one
      You are always welcome, the fact that undefined is nonsense, but, if you still need to have boolean values ​​in principle, write something like function getCheckedState (el) {return !! el.attr ('checked'); } And you will only be true or false, although, of course, you hardly need it: D Please - Zowie
    • Everything is correct, but I wanted to add that to check the status it is better to use the <a href=" jquery.page2page.ru/index.php5/…> method instead of .attr () - Deonis
    • Solidarity, just forgot the name of the method - Zowie
    • You must use either .prop("checked") or .is(":checked") . If you use attr("checked") , you should keep in mind that some plugins (for example jqueryui Button applied to checkboxes) can replace elements without touching attributes and prop will work, and attr will not. - Yura Ivanov