can an html input be put inside a text area
For example I have limited space and I want the submit button to appear in the bottom right of the text area. So开发者_JS百科mething like this?:
<textarea value='text message' name='messageSMS' id='messageSMS' onfocus='clearInput(this)' onblur='clearInput(this)'>
<input value='send' id='sendSMS' type='submit' name='submit' />
</textarea>
No.
Instead, you could use CSS to move it over the textbox.
For example: (Tested in Firefox on Windows 7; DEMO)
#sendSMS{
width: 40px;
position: relative;
left:-47px;
top: -7px;
}
You might want to make the button cover the entire height of the textbox.
You can use CSS positioning.
精彩评论