allow people to only alter certain values in an input JavaScipt <p>I have the following code</p> <pre><code>&lt;input id="startDate "type="text" name="courseDate" value="MM/YYYY" /&gt; </code></pre> <p>I was wondering how I could use JavaScript to ensure that a user can only edit the "MM" and "YYYY" in the textbox.</p> <p>Thanks Y</p>