how can i disable/enable collider of parent gameobject.

how can i disable or enable collider of parent gameobject using child gameobject.

transform.parent gives you the parent of your gameObject. So you could do sth. like:

 //you could do null checks if you're not sure your parent or collider exist
 transform.parent.GetComponent<Collider>().enabled = false;