What do you want to save?
Add Code snippet
New code examples
-
Html 2021-08-31 21:42:02
move cursor to end of line javascript
<input type="text" id="yourId" onfocus=" let value = this.value; this.value = null; this.value=value" name="nameYouWant" class="yourClass" value="yourValue" placeholder="yourPlaceholder..... Add solution -
Javascript 2021-08-31 19:36:01
How can I set the form action through JavaScript?
//Set your form action document.getElementById('myFormId').action="./myPage.myLanguage" //display on console your form action connsole.log(document.getElementById('myFormId').action) //retrive the action from a selected Form document.getElemen... Add solution -
Javascript 2021-08-31 18:12:01
replace all swear words using bookmarklet
javascript:function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new RegExp(a,'gi'),b);}e... Add solution -
Javascript 2021-08-31 18:10:01
javaScript disable submit button until form is fully validated
function fieldValidation() { var name = document.forms['RegForm']['Name'].value; var address = document.forms['RegForm']['Address'].value; var email = document.forms['RegForm']['EMail'].value; var password = document.forms['RegForm']['Password'].value; v... Add solution