$ 0 0 hi Kuldeep, it is giving an syntax error if we keep it out of the function.and if we write it out side the controller function it is giving an error that controller is not found ... regards,ganesh.