Hi guys.
I have created a web widget so that people can add badges through html to their websites but when I want to select the code, the code disappears. Almost as if the code in the box is a label and not text. I have posted on the webwidget moduel and the maintainer says that it is the theme. He says;
@besnikt your theme is doing that :onfocus emptying the field which is a little weird.
function() {
if (this.value == this.defaultValue) {
this.value = "";
}
}in jollyness.js
The relevant form output can be seen on http://oflocal.co.za/cape-town/top10-best-beaches in the right sidebar under the "badge"
Please can someone explain how to fix this.
Thanks
© Copyright 2013-2017 DrupalExp - All Rights Reserved
Hi rickh,
Please remove $('.form-text,.form-textarea').cleardefault(); from jollyness.js file.
Thanks!