# Help with my combo box plz

**URL:** https://forum.kirupa.com/t/help-with-my-combo-box-plz/65286
**Category:** Uncategorized
**Created:** [September 24, 2004, 5:26pm UTC](https://forum.kirupa.com/t/help-with-my-combo-box-plz/65286 "2004-09-24T17:26:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BrettRT](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@BrettRT](https://forum.kirupa.com/u/BrettRT)
#### Post date: [September 24, 2004, 5:26pm UTC](https://forum.kirupa.com/t/help-with-my-combo-box-plz/65286/1 "2004-09-24T17:26:08Z")

</div>

This is the beginning of my typer program, I’m having some difficulties changing the font of the user submitted text, I’m pretty sure its with my combo box details.

```auto

 function FontSelect() { 
 	if (myCombo.getValue() == "Garamond") {
 		user_output.setStyle("fontFamily", "Garamond"); 
 	} else if (myCombo.getValue() == "Arial") {
 		user_output.setStyle("fontFamily", "Arial"); 
 	} else if (myCombo.getValue() == "Verdana") {
 		user_output.setStyle("fontFamily", "Verdana"); 
 	}
 }; 

```

user\_output is a textarea containing the text I want to change. myCombo is the combo box.

I have the combo box parameters setup like…

Editable: False  
Labels: [Arial,Verdana,Garamond]  
Data: [Arial,Verdana,Garamond]  
Row Count: 3  
Change Handler: FontSelect

Ideas?
