Can we use protocol less URL while referencing jQuery from CDNs?

Answer Posted / chaitanya

Yes. Below code is completely valid.

Hide Copy Code

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between onload() and document.ready() function used in jquery?

865


How to get the server response from an ajax request using jquery?

555


Which version of jquery file should be used?

582


How can I select 20th div with jquery?

554


How to write cookies in jquery?

3741






what are the features of jquery

537


Define url paremeter of jquery ajax method?

532


Is numeric in jquery?

546


Explain various methods to make ajax request in jquery?

525


Explain remove class jquery with example?

525


What is the difference between bind() and live() function in jquery?

551


How do you install/use jquery in a project.

556


What is resize() function in jquery?

580


What is jquery.length? : jquery mobile

517


What is queue() in jquery?

560