I am new yii framework .Plz help me for how to disable submit button after submission in Yii framework. plz explain in view, controller, and model for this work
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basicaly Yii comes with jQuery as client side library so you should use a jQuery selector to select your button and disable it. If you are having trouble selecting it you should add an ID to it.
after that you could use jQuery to disable the button
you should place that code in the same view (all client side code should go in views) in a jQuery document ready function.
Like stated, this isn’t really a yii related question.