USB problem

when I connect a USB to the Arduino it turns on. But when i connect the usb to my laptop the the ports button in the arduino ide is greyed out. How can i fix this?
I am using an elegoo uno r3 board.

The second link has some useful information for you.

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Other general help and troubleshooting advice can be found here.

Did you choose the right board in Arduino IDE? (Uno R3, I think). Try another USB cable or port. And check the suggestions of ballscrewbob.

fatima_amin:
when I connect a USB to the Arduino it turns on.

What's connected at the other side of the USB? PC, USB power adapter, ...?

fatima_amin:
But when i connect the usb to my laptop the the ports button in the arduino ide is greyed out

What does your operating system say when you connect the board to the laptop? Which operating system?