Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6584615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:33:31+00:00 2026-05-25T16:33:31+00:00

When binding a checkbox to the checked binding and using jQuery mobile the observable

  • 0

When binding a checkbox to the checked binding and using jQuery mobile the observable does not get updated when the enhanced checkbox is checked.

see here

I have looked at the code for both libraries and it seems that knockoutjs is bound to the click event, yet jQuery mobile only updates the checked value which does not fire this event, i have fudged around with hacks to try to get this working with no joy..

Does anyone have a workaround for this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:33:32+00:00Added an answer on May 25, 2026 at 4:33 pm

    There might be a better way to do this, but have a look at this:

    http://jsfiddle.net/vQRWQ/

    I’ve added a new bindingHandler:

    ko.bindingHandlers.checkbox = {
        update: function(element, valueAccessor) {
    
            var value = valueAccessor();
    
            var valueUnwrapped = ko.utils.unwrapObservable(value); 
    
            $(element).attr("checked", valueUnwrapped).checkboxradio("refresh");
        }
    };
    

    And used the “event” binding:

    data-bind="event: {change: function(){ checked(!checked()); } }, checkbox: checked"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a checkbox who's checked value is bound to a binding source which
I have made a CheckedListBox using the following: <ListBox x:Name=lst_checkBoxList ItemsSource={Binding}> <ListBox.ItemTemplate> <DataTemplate> <CheckBox
The Binding syntax, {Binding /} , works in WPF but does not work at
i have a simple checkbox <CheckBox IsChecked={Binding ForceInheritance}/> In Code i have a class
I have a checkbox which needs to be checked in order for it to
I have a custom adapter extended from the SimpleCursorAdapter. Using this I'm binding a
Binding checkbox in WPF is common issue, but I am still not finding example
Here's my binding source object: Public Class MyListObject Private _mylist As New ObservableCollection(Of String)
I'm really hoping someone can help me out here. I have a DataGrid in
I have a strongly typed partial view CheckBox.ascx that renders a checkbox. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.