Modify `input` value
<p>HTML:</p>

<pre><code>&lt;div class="mydiv"&gt;
    My Div
    &lt;ul&gt;
       &lt;li&gt;&lt;input type="submit" value="first"/&gt;&lt;/li&gt;
       &lt;li&gt;&lt;input type="submit" value="second (blah blah)"/&gt;&lt;/li&gt;
       &lt;li&gt;&lt;input type="submit" value="third . blah blah"/&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>How can I retrieve the value of the <code>input</code> and replace any '(' or '.' with a '\n'? The result would appear like:</p>

<pre><code>second
(blah blah)
</code></pre>
