I’d like to have a form with several select controls in a horizontal (they are next to each other) layout and have labels on top of each select.
Like this:
Inline form fields with labels placed on top
How can I do that with css and using dform?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is the answer using dform. Thank you for negative voting.
css for span… display:inline-block
label and select… display : block
$('#myform').dform({"action" : "dform.html",
"method" : "get",
"html" :
[
{
"type": "span",
"html": {
"type": "select",
"name": "Country",
"caption": "Country",
"class": "countries",
"options": {
"": "All",
"USA": {
"html": "USA",
"class": "active"
},
"Germany": {
"html": "Germany",
"class": "active"
},
"France": {
"html": "France",
"class": "active"
}
},
"selected": null
}
}
]
});