Created
March 3, 2011 00:36
-
-
Save chrisjm/852096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handleOnchange(item) { | |
if( descriptions[$(item).val()] ) { | |
$(item).parent().parent().find('.navTitle input').val(descriptions[$(item).val()].title); | |
$(item).parent().parent().find('.navTarget input').val(descriptions[$(item).val()].uri); | |
$(item).parent().parent().find('.navTarget input').attr( 'onFocus', 'blur();' ); | |
$(item).parent().parent().find('.navTarget input').attr( 'class', 'disabled' ); | |
} else { | |
$(item).parent().parent().find('.navTitle input').val(''); | |
$(item).parent().parent().find('.navTarget input').val(''); | |
$(item).parent().parent().find('.navTarget input').attr( 'onFocus', null ); | |
$(item).parent().parent().find('.navTarget input').attr( 'class', '' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment