What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-23 01:31:30
how to block special characters in javascript
var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?"; for (var i = 0; i < document.formname.fieldname.value.length; i++) { if (iChars.indexOf(document.formname.fieldname.value.charAt(i)) != -1) { alert ("Your usern... Add solution -
Javascript 2021-11-12 18:06:14
change the focus to next in angular forms
import { Directive, ElementRef, HostListener, Input } from '@angular/core'; @Directive({ selector: '[moveNextByMaxLength]' }) export class MoveNextByMaxLengthDirective { constructor(private _el: ElementRef) { } @HostListener('keyup', ['$event']) onKeyD... Add solution -
Javascript 2021-10-06 22:03:05
javascript insert text in textarea at cursor position
function insertAtCaret(areaId, text) { var txtarea = document.getElementById(areaId); var strPos = 0; var br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ? "ff" : (document.selection ? "ie" : false)); ... Add solution -
Other 2021-09-29 01:52:03
mat-select option to select all options
tosslePerOne(all){ if (this.allSelected.selected) { this.allSelected.deselect(); return false; } if(this.searchUserForm.controls.userType.value.length==this.userTypeFilters.length) this.allSelected.select(); } toggleAllSelection() {... Add solution -
Javascript 2021-09-10 02:49:04
javascript ajax show result type min 3 characters
// Call datatables, and return the API to the variable for use in our code // Binds datatables to all elements with a class of datatable var dtable = $(".datatable").dataTable().api(); // Grab the datatables input box and alter how it is bound ... Add solution
Best helpers
Ranking is empty