questions/web-development/java-script
Hello @kartik, To solve the problem with ASP:Button ...READ MORE
Hello @kartik, Try: if ($('#element').is(':empty')){ //do something } If you ...READ MORE
Hello @kartik, While Hash#has_key? gets the job done, as it has ...READ MORE
Hello @kartik, Try this: window.dispatchEvent(new Event('resize') ...READ MORE
Hello @kartik, "use strict"; Basically it enables the strict ...READ MORE
Hello @kartik, If your script is called myScript.js ...READ MORE
Hello @kartik, Your data is already an object. ...READ MORE
Hello @kartik, Express has a helper for this as: app.get('/download', function(req, ...READ MORE
Hello @kartik, Give your img tag an id, ...READ MORE
Hello @kartik, You can do that with JavaScript ...READ MORE
Hello @kartik, Try this: rake db:migrate:down VERSION=20100905201547 will roll back ...READ MORE
I have two different kinds of sticky ...READ MORE
Nothing an author can do can choose ...READ MORE
Hii @kartik, You are loading the model using ...READ MORE
Hello @kartik, You can use Object.keys() and map() to do this var obj ...READ MORE
Hello @kartik, Use event.stopPropagation(). <span onclick="event.stopPropagation(); alert('you clicked inside the ...READ MORE
Hello @kartik, AJAX calls only send Cookies if ...READ MORE
Hello @kartik, It is always best practice to ...READ MORE
Hii @kartik, Basically what you done is right, ...READ MORE
Hello @kartik, Use this: function is_touch_device() { ...READ MORE
Hello @kartik, You can solve this error by ...READ MORE
Hello @kartik, With hidden field you need to ...READ MORE
Hii @kartik, You have to add as="fetch" for JSON files. ...READ MORE
Hii, This works in all browsers: window.location.href = '...'; If ...READ MORE
Hello @kartik, Basically, this error occurs when the ...READ MORE
Hello @kartik, JS has two registered MIME types: The ...READ MORE
Hello @kartik, Make the call on an input ...READ MORE
Hello @kartik, The script is not added to ...READ MORE
Hello, You can use util.inspect(object) in node.js. It automatically ...READ MORE
Hello @kartik, The following function will return an ...READ MORE
Hello @kartik, You need to do something like ...READ MORE
Use hasOwnProperty(key) for (let i = 0; i ...READ MORE
Hello @klartik, Jusr use the global flag, g: foo.replace(/<br>/g,"\n") Hope it ...READ MORE
Hello @Felix , Use this code: <script> function simulateMouseEvents(element, eventName) ...READ MORE
Hello @kartik, You can first go through: window.location.search It will ...READ MORE
Hello @kartik, Access-Control-Allow-Headers does not allow * as accepted value. Instead of ...READ MORE
Hello, Use fetch method inside componentDidMount to update state: componentDidMount(){ fetch('https://dey.me/api/') ...READ MORE
Hello @kartik, Use modern Javascript, with remove! const parent = ...READ MORE
Hii @kartik, The problem was that even though the ...READ MORE
Hello @kartik, nodeName is the attribute you are looking ...READ MORE
hello @kartik, This is innterHTML because it's inside ...READ MORE
Hello @kartik, You can use vanilla JavaScript way var radios ...READ MORE
Hello @kartik, Use this: // set up let start = ...READ MORE
Hello @kartik, throw an Error wrapping the value, which results in ...READ MORE
Hello @kartik, Use this: <asp:button runat="server".... OnClientClick="myfunction(); return false;" ...READ MORE
Hello @kartik, Use this code: var w = window.innerWidth; var ...READ MORE
Hello @kartik, either (plain js) this.checked = false; or (jQuery) $(this).prop('checked', ...READ MORE
You don't need jquery. You can also ...READ MORE
Hello, You can use fs.existsSync(): const fs = require("fs"); // ...READ MORE
Hello, Here’s a method you can use to ...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.