Talk:Display instructions for each option on a form

From Semantic MediaWiki Demo Wiki
Jump to: navigation, search

What is wrong in my source?

I´ve pasted your source code in MediaWiki:Common.js

/* Das folgende JavaScript wird für alle Benutzer geladen. */
jQuery(function() {
jQuery('option[value="de"]').html("Deutsch");
jQuery('option[value="en"]').html("English");
jQuery('option[value="it"]').html("Italiano");
});

But it doesn´t work. Do you know my mistake?

--80.149.179.2 04:06, January 2, 2012 (EST)

Are you using a recent version of MediaWiki? And try looking at the Javascript console, using either Firefox + Firebug or Google Chrome (with "inspect element"), and see if any Javascript errors appear. Yaron Koren 15:36, January 4, 2012 (EST)


Yes we use MediaWiki 1.17.0.! I've found that it was changed in setting the user's language of Mediawiki. But in my form, there isn´t a change.
Here is the text of the property:
This property has type [[has type::String]].
* [[Allows value::de]]
* [[Allows value::en]]
* [[Allows value::it]]
I´ve tried it in my form with checkboxes, radiobuttons, listboxes, combobox. But it doesn´t work. 80.149.179.2 08:45, January 13, 2012 (EST)