Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
common functions for js
function submitLock(obj, type)
{
var value = obj.val();
if( type==1 ){
obj.attr('disabled', 'disabled');
obj.val(value+'...');
} else {
obj.removeAttr('disabled');
obj.val(value.replace('...',''));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.