I have an input text for a website address and I would like to validate it.
Examples of of what should be allowed are: http://www.somesite.com or .net or .org or anything valid for a website address.
Probably should use jQuery or just plain Javascript
You want to use regular expressions.
Regular expressions are a pattern matching technology designed to search Regular Languages. What this means is you can use a Regular Expression to find and match many different things that fit your desired pattern.
A great place to start learning regex (short for Regular Expressions) at regular-expressions.info
They have amazing guides to get you started
Once you learn about them you will understand why this pattern
means and why it is not a great pattern to use to match a website although it would work.
Good luck and happy hunting