I have a page with code who look like this:
<form id="editform" class="left " method="post" action="edit-account.php" name="editform">
<ul>
<li id="row_first">
<label for="first">First name</label>
<input id="first" type="text" value="Mike" name="first">
</li>
<li id="row_last">
<label for="last">Last name</label>
<input id="last" type="text" value="" name="last">
</li>
</ul>
<label for="submit_button"> </label>
<input id="submit_button" class="button" type="submit" value="Modify user profile" name="submit_button">
<input type="hidden" name="submitted" value="true">
</form>
My goal is to hide the Submit button only IF the field "first" contain the default value "Mike".
In practice if I use this CSS:
#submit_button.button{ display: none; }
this hide well the button but in all case and not only if "Mike" is the default value for field "first".
Any chance to do that using CSS?
Please note I don't have access to HTML page.. I'm allowed only to modify the external CSS file who style the page I'm trying to change.
Alternatively, if you have a Javascript solution, I could normally use that because I have access to an external JS file planned for modify some form element.