try this way:
@Html.TextBoxFor(model => model.Phone,new { id = "idPhone",
data_format="+1 (ddd) ddd-dddd"}, @class="input-medium bfh-phone")
Atenciosamente,
Programming in HTML5 with JavaScript and CSS3 Specialist
2013/6/17 <[email protected]>
> Dear folks,
>
> This renders a phone number input:
>
> <input type="text" class="input-medium bfh-phone" data-format="+1 (ddd)
> ddd-dddd">
>
> Nice, but I need it in cshtml:
>
> @Html.TextBoxFor(model => model.Phone,new { id = "idPhone", data-format="+1
> (ddd) ddd-dddd"}, @class="input-medium bfh-phone")
>
> 'data-format' gives error because of the '-'.
>
> Does anyone know how to do that?
>
>
> Thanks.
>
> S.
>
> --
> You received this message because you are subscribed to the Google Groups
> "twitter-bootstrap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.