Hey there, I have a question about using jquery textcomplete.
It seems like a simple task, but I'm not sure how to accomplish it.
I've created a DEMO without jquery as reference.
My question is this: How can I make the .textBox
div automatically appear when I type an open parenthesis (
in the textarea?
If anyone knows how to achieve this, please share your expertise!
<div class="container">
<div class="textarea_wrap">
<textarea id="textarea" class="text"></textarea>
<div class="tagBox"></div>
</div>
</div>
CSS
.container{
width:300px;
height:300px;
margin:0px auto;
margin-top:30px;
}
.textarea_wrap{
width:100%;
box-sizing:border-box;
position:relative;
}
.text{
width:100%;
height:100px;
box-sizing:border-box;
outline:none;
border:1px solid #999999;
}
.tagBox{
width:300px;
height:100px;
background-color:red;
position:absolute;
top:100px;
display:none;
}