how to generate input in div

43 views
Skip to first unread message

Deepak Sisodiya

unread,
Jan 13, 2015, 9:33:23 AM1/13/15
to jquery...@googlegroups.com


I code

this.$$.find("#form").dform({
"html" :
[
{
"class":"form-control",
"id" : "date",
"type" : "text",
"placeholder" : "Date"
}
]
});

it generate



<form id="form">
<input type="text" class="form-control" id="description" placeholder="Description">
</form>


what i want is

<form id="form">
<
div class="form-group">
<input type="text" class="form-control" id="description" placeholder="Description">
</div>
</form>

David Luecke

unread,
Jan 13, 2015, 9:35:20 AM1/13/15
to jquery...@googlegroups.com
This should be documented and simply be possible like this:

this.$$.find("#form").dform({
  "html" :
    [
      {
        "type": "div",
        "class": "form-group",
        "html": {
          "class":"form-control",
          "id" : "date",
          "type" : "text",
          "placeholder" : "Date"
        }
      }
     ]
});

--
You received this message because you are subscribed to the Google Groups "jQuery dForm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jquery-dform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Deepak Sisodiya

unread,
Jan 13, 2015, 10:57:22 AM1/13/15
to jquery...@googlegroups.com
thanks

Deepak Sisodiya

unread,
Jan 13, 2015, 10:58:09 AM1/13/15
to jquery...@googlegroups.com
thankyou daff.
i works. :)
Reply all
Reply to author
Forward
0 new messages