asp.net mvc - Bootstrap datepicker not popping out in MVC -


i saw lot of post regarding not able solve.

in view bootstrap datepicker popping out input tag eg:

<input class="span2 datepicker" size="16" type="text" value="12-02-2012">

when run page iam able change date through datepicker.

$(document).ready(function () {              $('.datepicker').datepicker();          });

but same not working below code

<div class="control-group">@html.labelfor(model => model.dob, htmlattributes: new { @class = "control-label " })  <div class="controls">   @html.editorfor(model => model.dob, new { htmlattributes = new {@class = "datepicker" } })  @html.validationmessagefor(model => model.dob, "", new { @class = "field-validation-error text-danger" })  </div>  </div>

please me.

it sorted out.

<div class="control-group">@html.labelfor(model => model.dob, htmlattributes: new { @class = "control-label " })  <div class="controls">   @html.editorfor(model => model.dob, new {@class = "datepicker" } })  @html.validationmessagefor(model => model.dob, "", new { @class = "field-validation-error text-danger" })  </div>  </div>

i removed "new { htmlattributes = " editorfor

and working fine :)


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -