questions/web-development/java-script
Hello @kartik, To collect all item of an array ...READ MORE
Hello @kartik, To find in the parent of ...READ MORE
Hello @Kartik, The following code will return a ...READ MORE
Hello @kartik, You can use vanilla JavaScript way var radios ...READ MORE
Hello @kartik, Node.js is a platform built on ...READ MORE
Hello @kartik, You can have jade include a ...READ MORE
Hello @kartik, Using Window.postMessage() This method safely enables cross-origin communication. And if ...READ MORE
Hello @kartik, With the modal open in the ...READ MORE
Hello @kartik, Use this: function popupwindow(url, title, w, h) ...READ MORE
Hello @kartik, There is absolutely nothing wrong with ...READ MORE
Hello @kartik, Use this: window.top.location.href = "http://www.example.com"; Will redirect ...READ MORE
Hello @kartik, Use this: var filename = fullPath.replace(/^.*[\\\/]/, '') This ...READ MORE
Hello @Kartik, Simply use classList.contains(): if (document.body.classList.contains('thatClass')) { ...READ MORE
Hello @kartik, You have to put your code ...READ MORE
Hello @kartik, Use this: var rates = document.getElementById('rates').value; The rates ...READ MORE
Hello @kartik, Put anything into an array using ...READ MORE
Hello @kartik, To encode: $("<textarea/>").html('<a>').html(); ...READ MORE
Hello @kartik, Use native JSON.stringify method. Works with nested objects ...READ MORE
Hello @kartik, Use this: var docLoaded = setInterval(function () ...READ MORE
Hello @kartik, You can use the qualities of ...READ MORE
Hello @kartik, Use: window.location.href As noted in the comments, ...READ MORE
Hello @kartik, Try this: var obj = {}; return Object.keys(obj).length; Hope ...READ MORE
Hello @kartik, To copy HTML , you can ...READ MORE
Hello @kartik, Use: $(".myCheckbox").attr('checked', true); // Deprecated $(".myCheckbox").prop('checked', true); And if ...READ MORE
Hello @kartik, As an alternative to regular expressions ...READ MORE
Hello @kartik, Use window.open(): var win = window.open('http://edureka.co/', '_blank'); if (win) ...READ MORE
Hello @kartik, A simple way to disable any ...READ MORE
Hello @kartik, Your syntax is incorrect, you should ...READ MORE
Hello @kartik, You could always add to the ...READ MORE
Hello @kartik, There is different way based on ...READ MORE
Hello @kartik, Try this: window.dispatchEvent(new Event('resize') ...READ MORE
Hello @kartik, Try: if ($('#element').is(':empty')){ //do something } If you ...READ MORE
Hello @kartik, $.getJSON is asynchronous so you should do: $.getJSON("test.json", ...READ MORE
Hello @kartik, The script is not added to ...READ MORE
Hello @kartik, AJAX calls only send Cookies if ...READ MORE
Hello @Alisha, Try to work using the model ...READ MORE
Hello @ Okugbe , You need few lines of code, ...READ MORE
Hello @kartik, You can do: <div class="basic"> {% include "main/includes/subtemplate.html" ...READ MORE
Hello @kartik, If you are using ModelForm, apart from ...READ MORE
Hello @kartik, I think you need to do ...READ MORE
Hello @kartik, Try: error: function(xhr, status, error) { ...READ MORE
Hello @kartik, Follow this steps: Create an iFrame, put a ...READ MORE
Hello @kartik, You don't need jQuery for that ...READ MORE
Hello @kartik, Use this: +new Date I also like this, ...READ MORE
Hello @kartik, To validate email use the below ...READ MORE
Hello @kartik, It is possible to dynamically generate ...READ MORE
Hello @kartik, The delete operator is used to remove properties ...READ MORE
Hello @kartik, Replace the ssl gem source with ...READ MORE
Hello @kartik, Use hash = JSON.parse string Rails should automagically ...READ MORE
Hello @kartik, You can also use JSON.generate: require 'json' JSON.generate({ foo: ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.