That was Edd Byrnes as "Kookie" in the detective series "77 Sunset Strip" (1958-64), which portrayed the "hipster" world in LA.  Of course, the show owed little to hip authors Jack Kerouac, Allen Ginsberg, William S. Burroughs, Gregory Corso, and others from the bohemian "Beat Generation".  Then the "Summer of Love" with its "acid tests", long hair, and anti-establishment stance collided with the Vietnam war, showcased in every living room on TV, and America divided between "hard-hats" and "hippies".  Subsequently, the "coolness" lost its luster on TV, when it could no longer sell soap.