What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-22 16:50:10
show selected text in textarea && activeElement
function onMouseUp(e) { const activeTextarea = document.activeElement; const selection = activeTextarea.value.substring( activeTextarea.selectionStart, activeTextarea.selectionEnd ); const outputElement = document.getElementById('output-eleme... Add solution -
CSS 2022-01-22 05:25:02
css remove border input focus
textarea:focus, input:focus{ outline: none; } Add solution -
Javascript 2021-11-21 19:21:28
autosize a textarea using Prototype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://www.google.com/jsapi"></script> <... Add solution -
Javascript 2021-11-18 14:35:40
javascript chat box
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body {font-family: Arial, Helvetica, sans-serif;} * {box-sizing: border-box;} .open-button { ba... Add solution -
Other 2021-11-17 22:17:14
ckeditor selectionStart
<script> CKEDITOR.instances[ckeditor_id].insertText(val); // ckeditor will automatically append any text you want with code above by saving selectionStart as instances method // the val will be inserted at last clicked or active cursor position ... Add solution -
Html 2021-11-17 03:04:15
contact form feilds
<div class="col-lg-6 col-6 pd-l"> [text* your-name placeholder"Name"] [text* your-sub placeholder"subject"] </div> <div class="col-lg-6 col-12 pd-r"> [email* your-email placeholder"Email... Add solution