Drupal / jQuery / CSS :: Wrap radio button label in span tag?

You can try this after the page is loaded $(function(){ $("lable. Form-radio"). Each(function(){ $(this).

After($(this). Find("inputname=samp")); }); }).

– ShankarSangoli Aug 2 '11 at 2:05 apologies... life stole me from my computer for a while... thanks for your help – KumbaThought Aug 2 '11 at 4:22.

It sounds like you were close—the function theming a single radio input is theme_radio (not theme_radios, which exists but is different). To do this, create an override function in your theme's template. Php based on theme_radio, i.e.'; if (!is_null($element'#title')) { $output = '' .

$element'#title' . '' . $output; } unset($element'#title'); return theme('form_element', $element, $output); }?

> (This works for any of the theme functions found in /includes/form. Inc; remember to name the override function after your theme.) Assuming you're using Drupal 6 based on the link you sent.

KumbaThought - Don't use jQuery, please! Use the robust Drupal theme override system and avoid having to do things after the page loads. Add my code to your template.

Php and flush caches. It works! – DefiniteIntegral Aug 2 '11 at 5:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions