Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#some_selector_id').change(function() {
- var val = $(this).val();
- if (val == "something")
- {
- $('#other_field').prop('disabled', true);
- } else {
- $('#other_field').prop('disabled', false);
- }
- });
- $('#some_selector_id').change();
- $('#some_selector_id').change();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement