I am trying to format some text fields in a form, as explained in this screencast: the screencast
I do everything exactly as the instructor in the video says: in the config/settings.cfm file I write this...
<cfset set(functionName="textField", labelPlacement="before", prependToLabel="<div>", append = "</div>", appendToLabel = "<br />")>
But when I refresh the website and check the HTML code "under the hood", it looks like that (obviously not correct):
<div><label for="user-firstName" placement="before">First Name<input id="user-firstName" type="text" value="" name="user[firstName]" /></div></label><br />
Do you notice the where the problem is? The tags </label><br /> should have been automatically placed right after the label-text "First Name"! Instead they are being placed right at the end of the code (behind the </div> tag)!
Also I am not sure what is the placement="before" option doing within the <label> tag!
The result I should get is this (like in the screencast, on time 2:50):
<div> <label for="user-firstName">First Name</label><br /> <input id="user-firstName" type="text" value="" name="user[firstName]" /> </div>
Does anyone have a clue of what is wrong here?
Thank you so much in advance for your help.