@HistoPol @wikipedia @marcelliotnet @Oeneus okay, since you brought Wikipedia into this I'll provide more information with less simplifications.
The West Bank was not seized from Jordan after Jordan attacked Israel. Rather, it was captured by Israel during the Six-Day War in 1967, when Israel launched a preemptive strike against Egypt, Jordan, and Syria after tensions escalated in the region. Jordan had controlled the West Bank since the 1948 Arab-Israeli War.
Jordan is not carved out of Palestine. Jordan was originally part of the British Mandate of Palestine, but it became an independent kingdom in 1946, two years before Israel was established in 1948.
Israel was established in 1948, following the United Nations partition plan for Palestine, which proposed dividing the land into separate Jewish and Arab states. The establishment of Israel led to the Arab-Israeli War of 1948, during which neighboring Arab states, including Jordan, invaded the newly declared state of Israel.
Or, for the TLDR, see my previous post. 😉