Commit c582059a authored by Robert Lyon's avatar Robert Lyon

Bug 1687356: Fixing up js to work correctly with jQuery

behatnotneeded

Change-Id: I9879485afcbdad483e9f09c3d0250caad35c7c07
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent e965d5eb
......@@ -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