Skip to content

Instantly share code, notes, and snippets.

@tediscript
Created February 13, 2012 08:39
Show Gist options
  • Save tediscript/1815085 to your computer and use it in GitHub Desktop.
Save tediscript/1815085 to your computer and use it in GitHub Desktop.
hide show attribute
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#tombol').hide();
$('#input-akhir').click(function(){
$('#tombol').show();
});
});
</script>
<style type="text/css">
</style>
</head>
<body>
<form>
<input type="text" name="text1" />
<br/>
<input id="input-akhir" type="text" name="text2" />
<br/>
<input id="tombol" type="submit" value="submit" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment