You are not logged in.
Pages: 1
Problem is: I need to start xinha in div that's initially hidden. I unhide it when I need to make an edit. If the div isn't marked hidden, xinha works fine.
This is how it looks if it's started out hidden then shown later. It's grayed out and you can't type in it.
<div class="col1">
<!-- Column 1 start -->
<div id="view">
<div class="align_right">
<form action=""><input type="button" value="Edit" class="button" id="edit_note" /></form>
</div>
<p id="view_note"></p>
</div>
<div id="editor">
<div class="align_right">
<form action="">
<input type="button" value="Cancel" class="button" id="cancel_note" />
<input type="button" value="Submit" class="button" id="submit_note" />
</form>
</div>
<div>
<form method="" action="">
<textarea id="newbiearea1" name="newbiearea1" rows="10" cols="50" style="width: 100%"></textarea>
</form>
</div>
</div>
<!-- Column 1 end -->
</div>
CSS to hide div.
#editor {
display: none;
}
I use jquery to unhide it.
$("#view").hide();
$("#editor").show();
Last edited by tremmo (2010-06-02 16:18:57)
Offline
Unfortunatly you need to start it unhidden and then hide it when it's loaded, this is a commmon request, search the forums. It's some browser problem that prevents it working the way you want.
James Sleeman
Offline
Pages: 1