Tytuł by się wydawał prosty bo do tego służy polecenie size jednak size nie działa, ponieważ korzystam z bibioteki selectize.js-master
A tak wygląda kod mojego skryptu
<script src="js/jquery.js"></script>
<script src="../dist/js/standalone/selectize.js"></script>
<script src="js/index.js"></script>
<head>
<link href="./style/domyslny.css" rel="stylesheet" type="text/css" />
<meta content="text/html; charset=ISO-8859-2" http-equiv="content-type">
<title>Pamiętnik substancji</title>
</head>
<table border=0 width=1000 align=center>
<tr>
<td><img src=./grafika/logo.jpg></td>
</tr>
<td><form action=xsf.php method=post><input type="text" id="input-tags" class="demo-default" value="awesome,neat" size=1></td>
</tr>
</table>
<script>
$('#input-tags').selectize({
delimiter: ',',
persist: false,
createOnBlur: true,
create: function(input) {
return {
value: input,
text: input
}
}
});
</script>
I chodzi o zmianę długości pola o id input-tags