In a detector that constitutes an in-tank valve, an attachment part formed on one end thereof is arranged in facing relation to a connector of a drive unit, and arm members of a bracket, which is substantially U-shaped in cross section and is fixed to the connector, are inserted in and engaged with engagement holes of the attachment part. Thus, the detector is always retained firmly in a state of being pulled to the side of the drive unit by elastic forces of the bracket.