totheletter
New Member
I've read a number of tutorials and just can't seem to figure it out. I have a input form element that is hidden on page load, but appears on click. The problem I'm coming across is making it hidden again.
As of now, when you click 'Click to type your name' the input form appears as shown in the picture, but there is no way to make it disappear again.
My goal is this: On click, when the input form appears I'd like the 'Click to personalize your own' to change to 'Show me my word!'. I'd also like to add a 'Cancel' text/button link directly above the input field that when clicked, both the input field and 'cancel' text link disappear and the 'Show me my word!' goes back to 'Click to personalize your own'.
Input Field Code
^^CSS Code for input field has 'display:none' property
'Click to Personalize your own' Link Code
Script to Make it appear and disappear
I've also attempted to add some CSS3 transition effects to make it fade in and out rather than just appear/disappear but no luck. Any help would be greatly appreciated.
As of now, when you click 'Click to type your name' the input form appears as shown in the picture, but there is no way to make it disappear again.
My goal is this: On click, when the input form appears I'd like the 'Click to personalize your own' to change to 'Show me my word!'. I'd also like to add a 'Cancel' text/button link directly above the input field that when clicked, both the input field and 'cancel' text link disappear and the 'Show me my word!' goes back to 'Click to personalize your own'.

Input Field Code
Code:
<input class="name" type="text" name="word" maxlength="11" value="click and type" onfocus="value=''" />
^^CSS Code for input field has 'display:none' property
'Click to Personalize your own' Link Code
Code:
<input type="button" value="click here to personalize your own" id="showHiddenBlock" />
Script to Make it appear and disappear
Code:
<script>
$(document).ready(function() {
2
$('#showHiddenBlock').click(function() {
3
$('.name').show();
4
});
5
});
</script>
I've also attempted to add some CSS3 transition effects to make it fade in and out rather than just appear/disappear but no luck. Any help would be greatly appreciated.