Ajax Update Textfield

Hi

I have two tables in my database (generate_id) name :-

  1. add_school(id,school_name,school_logo,school_address,school_phone,school_email,school_website)

  2. add_student(id,student_name,father_name,school_name,school_logo,school_address,school_phone,school_email,school_website,class_name)

i have generated crud for both.

I want data input in first model AddSchool but when i input data in AddStudent using create view it should be auto update text field i.e.,school_logo,school_address,school_phone,school_email,school_website on select dropdown list of school_name.

i have no idea please help me.

thanks in advance.

Hi

I have two tables in my database (generate_id) name :-

  1. add_school(id,school_name,school_logo,school_address,school_phone,school_email,school_website)

  2. add_student(id,student_name,father_name,school_name,school_logo,school_address,school_phone,school_email,school_website,class_name)

i have generated crud for both.

I want data input in first model AddSchool but when i input data in AddStudent using create view it should be auto update text field i.e.,school_logo,school_address,school_phone,school_email,school_website on select dropdown list of school_name.

i have no idea please help me.

thanks in advance.

please anyone help me.

i have try many time But not success please help me

thanks in adavance.

please please please!!!!!!!!!!!!!

[color="#006400"]/* Moved from "Yii-powered Application" to "General Discussion for Yii 1.1.x" */[/color]

[color="#006400"]/* Two topics merged. */[/color]

Hi Vikash,

Your question is not clear enough.

Please tell us the exact table schema for School And Student, and the relation between the two.

What are “school_name,school_logo,school_address,school_phone,school_email,school_website” fields in Student? And don’t you have a foreign key to School in Student?