Radio buttons dont work when jquery.html() is used to load dynamic form

http://ano-mag.com/black-foil/ please check this url - click the "Order Now" button on the left side - notice how the radio buttons won't work? I cant figure it out!

Answers


I reproduced the faulty behavior on your fiddle, it's due to this block of code:

$('.ano-box').click(function(e) {
    e.stopPropagation();
    return false;
});

Which prevents the click event from bubbling up the DOM to your radio buttons. =]

Complementary edit:

Your text inputs still gain focus in the faulty scenario because text inputs gain focus in the mousedown event, which is properly executed as it fires before the click event. The radio inputs, however, are checked in the click event which is being cancelled by your function. =]


Need Your Help

Facelets and JSP in same project?

java jsf facelets icefaces

Is it possible to use Facelets pages and .jsp style ICEfaces pages in the same project? In looking at the ICEFaces Facelets tutorial, the migration appears to be an all-or-nothing switch. Is it