Commit 62fd8dc1 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1687356: Fixing up js to work correctly with jQuery"

parents 03608f5c c582059a
......@@ -315,8 +315,8 @@ function pieform_element_select_get_inlinejs() {
return <<<EOF
function pieform_select_other(el) {
var element = jQuery(el);
var other = jQuery('#' + element.id + '_other');
if (element.value == 'other') {
var other = jQuery('#' + element.prop('id') + '_other');
if (element.val() == 'other') {
other.removeClass('hidden');
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment