jquery

Jquery hide & show to build quiz

故事扮演 提交于 2021-02-11 15:41:19
问题 i'm trying to make a simple quiz using jquery hide & show functions , first i created some divs elements wich will be the questions + the last elements will contain a text & a button to watch result (there will be no result) ; i'm using two buttons : next & prev . So the things i can't do on my own are : 1- hide the two buttons when they show the last div (Of the result !) ; 2-make the prev buttons stop on the first question . 3- how i can implement bootstrap radio options with Jquery to

Jquery hide & show to build quiz

你离开我真会死。 提交于 2021-02-11 15:39:25
问题 i'm trying to make a simple quiz using jquery hide & show functions , first i created some divs elements wich will be the questions + the last elements will contain a text & a button to watch result (there will be no result) ; i'm using two buttons : next & prev . So the things i can't do on my own are : 1- hide the two buttons when they show the last div (Of the result !) ; 2-make the prev buttons stop on the first question . 3- how i can implement bootstrap radio options with Jquery to

JQuery Ajax: Total Likes not updating for post when pressing Like button

只谈情不闲聊 提交于 2021-02-11 15:38:36
问题 Two JQuery Ajax calls. First brings back user messages from MySQL, the number of likes for that message and a button for the user to like the message. This request is working. Second Ajax request to fire from the user pressing the like button created from the first Ajax request. However, nothing appears to happen on pressing the button (no errors). Tried to view the results as an alert or in the console but nothing happened. Ajax request 1: dataType: 'json', success: function(response) { $

JQuery Ajax: Total Likes not updating for post when pressing Like button

☆樱花仙子☆ 提交于 2021-02-11 15:38:08
问题 Two JQuery Ajax calls. First brings back user messages from MySQL, the number of likes for that message and a button for the user to like the message. This request is working. Second Ajax request to fire from the user pressing the like button created from the first Ajax request. However, nothing appears to happen on pressing the button (no errors). Tried to view the results as an alert or in the console but nothing happened. Ajax request 1: dataType: 'json', success: function(response) { $

Add JQuery Toggle Class in Stencil/Electron

百般思念 提交于 2021-02-11 15:37:42
问题 I'm building an electron app with stencil. I want to make a div-container visible, when I click a button. I imported jQuery library but the function doesn't make the toggleClass-method. It just shows the console.log(). Can please someone help me? my-component.tsx code: import { Component, Prop, Listen} from '@stencil/core'; import $ from 'jquery'; @Component({ tag: 'aufklapp-button', styleUrl: 'aufklapp-button.css', shadow: true }) export class AufklappButton { @Prop() test: string; @Listen(

JQuery Ajax: Total Likes not updating for post when pressing Like button

旧城冷巷雨未停 提交于 2021-02-11 15:36:17
问题 Two JQuery Ajax calls. First brings back user messages from MySQL, the number of likes for that message and a button for the user to like the message. This request is working. Second Ajax request to fire from the user pressing the like button created from the first Ajax request. However, nothing appears to happen on pressing the button (no errors). Tried to view the results as an alert or in the console but nothing happened. Ajax request 1: dataType: 'json', success: function(response) { $

Checking checkbox with jquery

◇◆丶佛笑我妖孽 提交于 2021-02-11 15:33:22
问题 I'm trying to set the checked property of checkboxes with jQuery, the jQuery code is working fine, but I got the problem in codebehind: particular.click(function () { company.removeAttr('checked'); particular.attr('checked', 'true'); }); Company and particular are the names of checkboxes, the jQuery code is working fine, my problem is in codebehind (.cs file) if (particular.Checked) { company_name_blank.EnableClientScript = false; cif_blank.EnableClientScript = false; } This is not working

Can't work with isotope with bootstrap

橙三吉。 提交于 2021-02-11 15:31:47
问题 I'm trying to integrate bootstrap with isotope but only four image is loading first time, after clicking all it shows all the images! Can't figure out what's wrong! Here is Codepen Link This is my HTML : <div class="row"> <div id="filters" class="button-group"> <button class="button btn btn-primary is-checked" data-filter="*">show all</button> <button class="button btn btn-primary" data-filter=".web">WEB</button> <button class="button btn btn-primary" data-filter=".design">DESIGN</button> <

Can't work with isotope with bootstrap

大兔子大兔子 提交于 2021-02-11 15:30:58
问题 I'm trying to integrate bootstrap with isotope but only four image is loading first time, after clicking all it shows all the images! Can't figure out what's wrong! Here is Codepen Link This is my HTML : <div class="row"> <div id="filters" class="button-group"> <button class="button btn btn-primary is-checked" data-filter="*">show all</button> <button class="button btn btn-primary" data-filter=".web">WEB</button> <button class="button btn btn-primary" data-filter=".design">DESIGN</button> <

How to choose select option with javascript? [duplicate]

六月ゝ 毕业季﹏ 提交于 2021-02-11 15:28:59
问题 This question already has answers here : Set select option 'selected', by value (28 answers) Closed 5 years ago . I have a html select option <select id="level" name="level" class="ui dropdown"> <option value="">Choose</option> <option value="1">Abc</option> <option value="2">Def</option> <option value="3">ghk</option> </select> When i load this HTML, i need to choose option (based on data given from DB). $(document).ready(function(e) { var selectedIndex=3; //This data i get from DB //now i