ruby - Jquery libraries not working properly in rails 4 -


guys have include 2 script tags in application header datepicker in form. when include these tags datepicker function works css responsive not working. when remove these scripts responsive css working datepicker function stop working.here below scripts tags as

<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> 

when remove these tags calender datepicker not appear when remove these responsive works fine.for responsive have use 2 libraries shown below

<link href="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js" rel="javascript" type= "text/js"> <link href="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" rel="javascript" type= "text/js"> 

kindly suggest me should do. using rails 4.any highly appreciated.thanks

try not including both jquery , jquery min. choose one.

either (preferred):

<script src="//code.jquery.com/jquery-1.10.2.js"></script> 

or:

<link href="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" rel="javascript" type= "text/js"> 

see if solves issue. i'm not sure 2 jquery libraries included can conflict.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -