Use jQuery remove white space to avoid user escape required field.
There is one of the functions from jQuery which help to solve this problem.
Because want use jQuery get the input box value but the input box without the id attribute.
Then need use name attribute to find the input box get the value.
Following last post
Javascript Date Range Picker it was using pure javascript without using any framework.
Now we built another with JQuery.
I think a lot of people looking how to use javascript built the date picker with start date and end date. Normally how we did is just create 2 field with START DATE and END DATE. but the END DATE still can choose early then START DATE.
And we only can using javascript code to solve it.