0

I have been trying to autoselect an list by it's value with javascript but not succeded. Could anyone help me?

This is the code:

<script>
$("#uppdragstyp-wrapp").val("Städning");
</script>
Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74
user4312416
  • 137
  • 2
  • 9
  • possible duplicate of http://stackoverflow.com/questions/1573930/jquery-programmatically-select-an-option-in-select-box – chazsolo Dec 01 '14 at 16:49
  • When you say you've been "*trying to autoselect [a] list by [its] value*" what HTML element are you referring to? A list-element (`
  • `) within a `
      ` or `
      `, or an `
  • – David Thomas Dec 01 '14 at 16:49