kodyWiG

Tag: Select

10 gru 2009

Losowe ustawienie wartości combobox select

var f = document.f2;
f.elements[i].options[Math.floor((f.elements[i].length-1)*Math.random())+1].selected=true;
combo elements floor match options random Select selected
19 kwi 2009

Dodawanie uprawnien do tabel i schematu

GRANT usage ON schema moj TO moj_uzytkownik;
GRANT SELECT ON TABLE moj.tabela TO moj_uzytkownik;
GRANT schema Select usage
9 kwi 2009

Prosta konwersja stringu na friendly url

select lower(replace(nazwa,' ', '_')) from nazwy
lower replace Select
7 lut 2009

Formatowanie wartości pola w select sql

select CASE WHEN LENGTH(kategoria)>21 THEN SUBSTRING(kategoria,1,22) ELSE kategoria END as kategoria from kategorie
select CASE WHEN LENGTH(kategoria)>21 THEN CONCAT(SUBSTRING(kategoria,1,22), ".") ELSE kategoria END as kategoria from kategorie

concat Select SQL substring when
5 wrz 2008

Odczyt wartości z pola Select, kopia do innych pól formularza

function wybierzWyszukany(nr) {

  var el = document.getElementById("combo_osoba_" + nr);
  var el2 = document.getElementById("zwyciezca_" + nr);
  var el3 = document.getElementById("zwyciezcaid_" + nr);

  var idx = el.selectedIndex;
  if (idx < 0) return;

  el2.value = el.options[idx].text;
  el3.value = el.options[idx].value;
}
getElementById options Select selectedIndex text value
  • ←
  • 1
  • 2
  • 3
  • 4
  • 5
  • →
Copyright © | kodyWiG Theme
  • JavaScript 219
  • PHP 139
  • CSS 107
  • HTML 75
  • GMap 47
  • Linux 46
  • PostgreSQL 34
  • MySQL 33
  • VBSCRIPT 32
  • jQuery 27
  • Smarty 27
  • Wordpress 27
  • Windows 24
  • SQL 19
  • htaccess 18
  • Perl 17
  • Programy 11
  • System 11
  • SQL Server 10
  • Leaflet 10
  • Rewrite 9
  • HTTP 8
  • VBA 7
  • React 7
  • Intellij IDEA 6
  • Telefony 6
  • WYSIWYG 6
  • XML 6
  • Nodejs 5
  • SVG 4
  • JSON 3
  • Docker 3
  • Rejestr 3
  • Nauka 2
  • Github 1
  • Bez kategorii 1
  • Opera 1
  • Rollup 1