Check checkbox via ajax

Home Forums Motor Site Template Check checkbox via ajax

This topic contains 1 reply, has 1 voice, and was last updated by  ab-themes 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200

    ab-themes
    Keymaster

    I bought the great motor template. I just have a problem with the custom checkboxes. I would like to set them checked after an ajax request. When I have the checkbox checked, it doesn’t work anymore, I cannot change the state by clicking on it.
    If I set this attribute on the page initalized without ajax it works well.
    Do you know what to call on js to initialize them after loading? Something like setupLabel() maybe?

    #202

    ab-themes
    Keymaster

    Hi,
    just use .addClass(‘checkbox_on’) on checkbox parent label and check the checkbox itself so it submits with form.
    That should work, please let me know have you succeeded.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Check checkbox via ajax’ is closed to new replies.