Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering a Refresh #7

Open
HoecusPocus opened this issue Nov 27, 2013 · 3 comments
Open

Triggering a Refresh #7

HoecusPocus opened this issue Nov 27, 2013 · 3 comments

Comments

@HoecusPocus
Copy link

Hi there,

I've got a form that hides in a jQuery Dialog, which I copy values to based on a click of an element in the page.

I set the value of the inputs (there is an input[type=checkbox] and a hidden - this is an MVC website) to have the checked / value=true, depending on the hidden fields of the clicked item.

However the switchButton doesn't seem to update / switch itself over when setting the underlying input field. Is there a way to trigger this?

Thanks,
Ben

@ErwinM
Copy link

ErwinM commented Jan 24, 2014

I am need of this functionality as well. Is it possible to trigger a refresh?

My use case:

Switching the button triggers a dialog. If the user were to cancel the dialog I need to move the button back to its original position.

No idea how to do this though. Changing the :checked state underlying check box does not change the button..

@olance
Copy link
Owner

olance commented Mar 20, 2014

Guys, I'm sorry I don't remember having seen this issue at all :
Let me look at @ErwinM PR and I'll try to act quickly on it!

@madhukumars17
Copy link

Hi guys,

To change the state of :checked (for toggling between on and off label) you can use the class "switch-button-label off"

html snippet:
<div id="switch-button-toggle"> <input type="checkbox" class="switch-button"/> </div>

js snippet:
$("#switch-button-toggle [class='switch-button-label off']").click();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants