So I have 4 input type text that are optional (no obligation to fill in) but if the user fills in one of them, then I want him to fill them all.
Resume:
– If user fills in 0 input => no obligation, he can leave them blank;
– If user fills in 1< input => must fill them all.
How can I do that with jQuery?
Here is one option:
DEMO: http://jsfiddle.net/xw9pb/