Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to update input type text using css3?
    primarykey
    data
    text
    <p>I've sample keyboard layout mentioned below: On click of every number on the screen, i want to get it updated in text area. On click of backspace, i want to remove last number. On click of clear all, complete text ares need to get cleared. On click of navigation keys &lt; > cursor should move fordward and backwards in text area. Is there any way to achieve this using only CSS3? [Without using Javascript?] If not, can you please suggest best option to achieve same? [Note : I'm not using any javascript on the page, so adding anything like jQuery will add overheads on page load time]</p> <pre><code>&lt;html&gt;&lt;head&gt; &lt;style&gt; .vKeyboardSplKeys { background-color:#DEDBE4 ; border:1px solid #666666; display:inline-block; color:#000000; font-family:arial; font-weight:bold; padding:3px 6px; margin : 2px; cursor:pointer; } .vKeyboardSplKeysHover { background-color:#8cb82b; }.vKeyboardSplKeys:active { position:relative; top:1px; } .vKeyboardKeys { width:9px; background-color:#EEEEEE; border:1px solid #666666; display:inline-block; color:#000000; font-family:arial; font-weight:bold; padding:3px 8px; margin : 2px; cursor:pointer; }.vKeyboardKeysHover { background-color:#CEE9FC; }.vKeyboardKeys:active { position:relative; top:1px; } .space { padding : 3px 40px; } #vKeyboard{ border : 1px solid #DDDDDDD; background-color : #F4F4F4; padding:5px; text-align:center; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;center&gt;&lt;input type="text" id="answer" value=""&gt; &lt;div id="vKeyboard" style="width: 100px;"&gt;&lt;span class="vKeyboardSplKeys vKeyboardSplKeysHover" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;Backspace&lt;/span&gt;&lt;br&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;7&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;8&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;9&lt;/span&gt;&lt;br&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;4&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;5&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;6&lt;/span&gt;&lt;br&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;1&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;2&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;3&lt;/span&gt;&lt;br&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;0&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;.&lt;/span&gt;&lt;span class="vKeyboardKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;-&lt;/span&gt;&lt;br&gt;&lt;span class="vKeyboardSplKeys" data="left" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;&amp;larr;&lt;/span&gt;&lt;span class="vKeyboardSplKeys" data="right" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;&amp;rarr;&lt;/span&gt;&lt;br&gt;&lt;span class="vKeyboardSplKeys" style="border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;"&gt;Clear All&lt;/span&gt;&lt;br&gt;&lt;/div&gt;&lt;/center&gt; &lt;/body&gt;&lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload