can we use and operator to combine multiple jQuery events
<p>I want to use <code>jQuery</code> to see if three text boxes are changed so I can send data through <code>AJAX</code>.</p>

<p>I tried a simple script:</p>

<pre><code>$("#name, #position, #salary").change(function()
{
     console.log("All data are changed");
});
</code></pre>

<p>Where name, position and salary are the respective IDs of three text box.</p>

<p>The result was that when I change the first one:</p>

<p><a href="https://i.stack.imgur.com/aC3XM.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/aC3XM.jpg" alt="enter image description here"></a></p>

<p>And when I changed the second:</p>

<p><a href="https://i.stack.imgur.com/XK0ej.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/XK0ej.jpg" alt="enter image description here"></a></p>

<p>And here is the third one:</p>

<p><a href="https://i.stack.imgur.com/6NuRH.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/6NuRH.jpg" alt="enter image description here"></a></p>

<p>So, I've got the message when separately each text box is changed. What I do need is when the three are changed, display the message. I am new to jQuery, so I want to know if I can use something like <code>IF ... AND ... AND</code> in jQuery.</p>