samedi 31 octobre 2015

(JQUERY) check if input A OR input B has value

im trying to check if 1 of 2 inputs has a value as an IF statement. Here is the HTML:

                 <ul>
                    <li>
                        <label>Width</label>
                        <input type=text id="value1" />
                    </li>
                    <li>
                        <label>Height</label>
                        <input type=text id="value2" />
                    </li>
                </ul>

I want to check whether input#value1 OR input#value2 has a value...

Thanks in advance :)

Aucun commentaire:

Enregistrer un commentaire