---
title: "Lowercase()"
type: "forum-thread"
url: "https://www.webforum.nu/amne/javascript/103822-lowercase"
topic: "JavaScript"
topic_url: "https://www.webforum.nu/amne/javascript"
author: "icaaq"
published: "2004-05-18T08:14:40.000Z"
updated: "2004-05-18T08:40:46.000Z"
replies: 2
views: 297
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/javascript/103822-lowercase"
---

# Lowercase()

## #1 — icaaq, 2004-05-18T08:14Z

Hej.
Jag använder Jojjox Autoselect <http://www.jojoxx.net/jscript/archive/show.asp?id=24>
men jag vill att man ska kunna använda både gemener och versaler.

Huir kan jag modifiera denna så att den gör det

```
[red]
		var ignorevw=false; // Skall V eller W ignoreras?
		var lista = new Array();
		function searchlist(value,listobj){
			if(lista.length == 0) buildlist(listobj);
			matches=0;
			listobj.length = lista.length;
			for(n=0;n<lista.length;n++){
				if(lista[n].text.substring(0,value.length)==value||ignorevw&&lista[n].text.substring(0,value.length).replace(/w/g,'v')==value.replace(/w/g,'v')) {
					listobj[matches].text = lista[n].text;
					listobj[matches].value = lista[n].value;
					matches++;
				}
			}
			listobj.length = matches;
			listobj.selectedIndex=0;
		}
		function buildlist(obj){
			for(n=0;n<obj.length;n++){
				lista[n] = new makeobj(obj[n].value,obj[n].text);
			}
		}
		function makeobj(value,text){
			this.value=value; this.text=text;
		}
[/red]
```

mv icaaq

Permalänk: https://www.webforum.nu/p/103822

## #2 — Jesper T, 2004-05-18T08:23Z

Testa detta:

```
...
	function searchlist(value,listobj){
			if(lista.length == 0) buildlist(listobj);
			matches=0;
			listobj.length = lista.length;
			for(n=0;n<lista.length;n++){
				if(lista[n].text.substring(0,value.length).[b]toLowerCase()[/b]==value.[b]toLowerCase()[/b]||ignorevw&&lista[n].text.substring(0,value.length).replace(/w/g,'v')==value.replace(/w/g,'v')) {
					listobj[matches].text = lista[n].text;
					listobj[matches].value = lista[n].value;
					matches++;
				}
			}
			listobj.length = matches;
			listobj.selectedIndex=0;
		}
...
```

Permalänk: https://www.webforum.nu/p/1350481

## #3 — icaaq, 2004-05-18T08:40Z

thx

mv icaaq

Permalänk: https://www.webforum.nu/p/1350484

---

Tråden på webben: https://www.webforum.nu/amne/javascript/103822-lowercase
