how to disable a button in jquery based on condition