I have tried for almost two days to make an in-line text in the input forms via the <label> tag. It would work if it wasn't for the extra <div> placed around the input, textarea, etc.
My question is, what can I do about it? Is it possible to change the form that contour is rendering to a more usable html output?
else...
I have started up with my label, input stuff - and maybe it's just me that f***s up in the code.
Here is the jQuery I tried using for the inline form label output:
$(document).ready(function(){ $("label.fieldLabel + div input.text").each(function (type) { Event.observe(window, 'load', function () { setTimeout(function(){ if (!input.value.empty()) { input.previous().addClassName('has-text'); } }, 200); });
Making inline label on the form via jQuery & CSS
Hello everybody,
I have tried for almost two days to make an in-line text in the input forms via the <label> tag. It would work if it wasn't for the extra <div> placed around the input, textarea, etc.
My question is, what can I do about it?
Is it possible to change the form that contour is rendering to a more usable html output?
else...
I have started up with my label, input stuff - and maybe it's just me that f***s up in the code.
Here is the jQuery I tried using for the inline form label output:
and css goes here.
The rest of the form is build in Contour so it should look like all the others out there. I really hope someone can help me out here.
Kind regards,
Niels
No problem, I found the solution myself.
Download Labelify
http://www.kryogenix.org/code/browser/labelify/
Place the JavaScript code under the directory Scripts
Insert the following code in your Template
Insert the following code in your CSS
That should be it, you now have yourself a very nice inline-field label
Thanks, Niels
You're so kind to share the resolution for us.
linear bar code generation in asp.net
Best regards.
Mica Gordon
.net bar code encoder
is working on a reply...