kodyWiG

Tag: readOnly

2 wrz 2008

Dynamiczne dodawanie pola pola typu readonly

var cell = document.createElement("td");
inp = document.createElement("input");
if (idx > -1) {
  inp.value = sel.options[idx].text;
}
inp.type = "text";
inp.name = "numer_" + nr;
inp.size = 45;
inp.readOnly = true;
cell.appendChild(inp);

readOnly - Only musi byc z duzą literą( ale chyba tylko dla IE)

appendChild createElement input name readOnly type zize
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