Click here to Skip to main content
15,902,903 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have asp text box. I have to keep one small image button in the right side. when i cick that image one pop up will open..
Posted

You should have googled it. There are a number of solutions available. Anyways, here is the working sample: JSFiddle[^]
 
Share this answer
 
v2
Comments
aarif moh shaikh 9-Jun-15 2:41am    
Good one...
Zafar Sultan 9-Jun-15 2:42am    
Thanks.
Maciej Los 9-Jun-15 2:42am    
+5
Zafar Sultan 9-Jun-15 2:45am    
Thanks Maciej Los
The technique you're referring to doesn't actually have the button inside the textbox normally, the border and background of the button and textbox simply blend in with a wrapper div. Here is a basic example:


XML
<div class="wrapper">
    <input type="text" />
    <button>GO</button>
</div>

CSS
.wrapper {
    border:1px solid #000;
    display:inline-block;
}

input,
button {
    background-color:transparent;
    border:0;
}
 
Share this answer
 
Comments
[no name] 9-Jun-15 3:52am    
i appreciate above solution and i want to add that,clickable image is also good solution
you can put one clickable image inside your text box and fire on-click method on it ....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900