kodyWiG

Tag: text

26 lis 2009

Funkcja wypełniająca w formularzu pola typu text

function sf2() {
  var f = document.f2;
  for(i=0;i<f.elements.length;i++) {
   if(f.elements[i].type=='text')
    f.elements[i].value = 'test';
  }
 }
elements text type
18 sty 2009

Konwersja typu String do Integer

Dim w, h, wm, wh As Integer

w = CInt(TextBoxW.Text)
h = CInt(TextBoxH.Text)
wm = CInt(TextBoxWm.Text)
hm = CInt(TextBoxHm.Text)
CInt Corel konwersja text TextBox
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
Copyright © | kodyWiG Theme
  • JavaScript 216
  • PHP 139
  • CSS 105
  • HTML 74
  • GMap 47
  • Linux 46
  • PostgreSQL 34
  • MySQL 33
  • VBSCRIPT 32
  • Wordpress 27
  • jQuery 27
  • Smarty 27
  • Windows 24
  • SQL 19
  • htaccess 18
  • Perl 17
  • System 11
  • Programy 11
  • SQL Server 10
  • Rewrite 9
  • Leaflet 9
  • HTTP 8
  • VBA 7
  • React 7
  • Telefony 6
  • WYSIWYG 6
  • XML 6
  • Intellij IDEA 6
  • Nodejs 5
  • SVG 4
  • Rejestr 3
  • Docker 3
  • JSON 3
  • Nauka 2
  • Bez kategorii 1
  • Opera 1
  • Github 1
  • Rollup 1