Skip to content

Instantly share code, notes, and snippets.

@dustingetz
Created January 4, 2011 21:55
Show Gist options
  • Select an option

  • Save dustingetz/765513 to your computer and use it in GitHub Desktop.

Select an option

Save dustingetz/765513 to your computer and use it in GitHub Desktop.
var valueElement = document.getElementById('attr' + i +'value_');
if (!wsptIsNull(valueElement))
{
data.values[dataIndex].value = valueElement.value;
//if this happens to be a checkbox, its returning "true" (string) always,
//and not checking the checked state. valueElement.checked is the boolean i want
}
else
{
data.values[dataIndex].value = '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment