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

On hide how to unset the Input value #13

Open
rodrigomanara opened this issue Jul 25, 2016 · 1 comment
Open

On hide how to unset the Input value #13

rodrigomanara opened this issue Jul 25, 2016 · 1 comment

Comments

@rodrigomanara
Copy link

I have create a rule and onchange action the rules apply but how to I unset the value on action on hide?

@bright-light-in-the-night

before calling
$.deps.enable(...)
you can set some rules to undo the values

<select name="type">
	<option value="">Please select a value</option>
	<option value="1">Value 1</option>
	<option value="2">Value 2</option>
</select>

<select name="source">
	<option value="">Please select a value</option>
	<option value="1">Value 1</option>
	<option value="2">Value 2</option>
</select>

$("#type").on('change', function() {
	$('#source').val('').prop('selected', true);
});

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

2 participants