PostType (dropdownlist with the options Cars,Mobiles,Laptops)
model (textfield)
registration city (textfield)
warranty (textfield)
condition (textfield)
i have generated the CRUD for this model and now on my partial view ( _form.php file ) i want that when the user selects Cars from PostType dropdownlist warranty field should hide because cars don’t have warranty.when the user selects Mobiles from Drop down list registration city field should hide.as same for the laptops.
How can i acheive this using Jquery and controller action
i have alot of experience with asp.net and i can do this in asp.net but not in Yii.
sample code will be highly appriciated
thank and one more thing this is my second post and i am really disappointed that my first post does not even have a single reply.im new to yii framework and need some help from the pros
Thanks alot for the reply and the sample code .It solved by problem
thanks
[Edited]
Sorry The code is not working not even the alert box does not get displayed.initially i thought that it will work but today i tested it and it does not. please help