I am trying to hide empty fields upon submit $_GET.
My code looks like this but it's not working. Any help with the logic of this would be great.
<script>
$(submit).click(function(){
if(input.value.length == 0)
input.style.visibility = "hidden";
});
</script>
EDIT: Here is my button which submits the form -
<input name="SaveBtn" type="submit" id="SaveBtn"
formaction="update1Profile.php?id="<?php echo htmlentities($_SERVER["PHP_SELF"]) ?>
<?php echo $_GET['source_ID'] ?>" formmethod="GET" value="Save">
submithere. Is this refers html element? post your html code.