A 16-year-old boy was charged with attempted murder last night after a school stabbing at Caboolture.

A 14-year-old girl was stabbed in the head, neck, back and forearms about 7am yesterday in the grounds of the secondary school.

Police have alleged staff at the school were alerted to the assault by screams and performed CPR on the victim until ambulance officers arrived.

The teenager was taken to Royal Brisbane and Women’s Hospital in a stable condition and released yesterday afternoon.

As charges have now been laid, the school's name cannot be published because under the Child Protection Act information that may identify the victim.

The 16-year-old voluntarily walked into Caboolture police station soon after the stabbing and after hours of questioning was charged with attempted murder, according to police.

Acting Inspector David Crawford-Raby said police found a knife in the grounds of the college soon after the school was placed into lockdown.

‘‘The actual motive and the reasons for the incident happening haven’t been established,’’ Inspector Crawford-Raby said.

‘‘And that’s actually subject to the investigation which is under way.’’

After the stabbing the school was placed into lockdown and closed for the rest of the day while police established a crime scene. The school will resume classes today and offer counselling to students and the family of the victim.

Worried parents took to social networks to express their concern about the stabbing yesterday, with most questioning how this could happen in a place such as a school.

“Very scary morning, when my daughters are sent home from school because a student had been stabbed in the toilets. [name removed] is so upset she is friends with the girl ... Hope the poor girl is ok my thoughts and prayers are with her family," one mother posted on her Facebook page.