Junior Spellweaver
- Joined
- Nov 15, 2009
- Messages
- 106
- Reaction score
- 1
Attachments
You must be registered for see attachments list
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
$('#selectID').change(function() {
[INDENT]
$('#languageFormID').submit();
[/INDENT]
});
Jquery could solve this problem.
All it would take is
Code:$('#selectID').change(function() { [INDENT] $('#languageFormID').submit(); [/INDENT] });
There are inline elements and there are block elements. TheYou must be registered to see linksis an inline element. You are allowed to place the SELECT element inside of "any element that supports phrasing content",
(You must be registered to see links).
For example the DIV and P tags are only allowed in flow content. The SPAN tag is allowed inside flow content- and also phrasing content. TheYou must be registered to see linksandYou must be registered to see linkstags supportYou must be registered to see linkswhere aYou must be registered to see linksonly supportsYou must be registered to see links. Easy, right? Always use a reference.
One Suggestion:
Try wrapping the SELECT tag in P or SPAN tags because they are allowed inside elements that only support flow content, but both also support phasing content- which is what a SELECT menu is categorized as.
These rules may seem silly at first glance, but it's very easy to see why they are necessary. You cannot have inline elements simply floating about the page where ever you want to place them. For example, there is no reason to wrap a block-level element inside of a <strong> tag because block-level elements are not text. Similarly, rarely do you ever want text floating about inside of the <body> tag without any
Please read this for more information:
You must be registered to see links
<?php if (!$current_id){?><form action='' method='post' id="language"><select name="lang" onchange="document.forms['language'].submit()">
<option value="english"<?php if ($_SESSION['language']=="english") {echo "selected='selected'";}?>>English</option>
<option value="svenska"<?php if ($_SESSION['language']=="svenska") {echo "selected='selected'";}?>>Svenska</option>
</select></form><?php;}?>