radio button cheched problem
helo sir i want to tring a quiz app in quiz when i click radio button it checked or when go to next or previous button it show unchecked , i want that when i go next or previos button it show checked . please help my code bellow view_exam.php <?php //view_exam.php include('master/Examination.php'); $exam = new Examination; $exam->user_session_private(); include('header.php'); $exam_id = ''; $exam_status = ''; $remaining_minutes = ''; if(isset($_GET['code'])) { $exam_id = $exam->Get_exam_id($_GET["code"]);
JQuery - Clone View [object Object]
I am using clone to copy an input and when viewing it on the page I get [object Object]. I clone it as follows: var clonado =$('#Descripcion').clone(); And I visualize it as follows: var nuevaFila = "<tr>"; var clonado =$('#Descripcion').clone(); nuevaFila += "<td>" + clonado + "</td>"; $("#orderdetailsItems").append(nuevaFila); And displaying it comes out [object Object] instead of cloned input. I have tried to put cloned.html () and I no longer get [object Object], but I get empty. To prove that
scroll page down when opening blog archive
I'll try my best to explain what I want to do with this. All I want is when opening my blog archive, I want the page to scroll down when I click it open. How to do this? I tried to find an example code, but couldn't. "I can only show you the door. You're the one that has to walk through it." ~ Morpheus The Matrix
Jstree show context menu conditionally
The code below shows my attempt to show a jstree context menu only at level 1. The menu shows at level one and the options work which is what I want. The menu does not show at level 2 which is what I want. But, after selecting a level 2 node, then selecting a level 1 node the menu options appear but do not 'fire'. Any help appreciated Fiddle: https://jsfiddle.net/NervousElk/4p5hqg0r/17/ document.getElementById("gobtn").addEventListener("click", buildtree); function buildtree() { $('#ttstafftree').jstree(
when refresh radio button or go next radio button unchecked
i create a quiz system, in my quiz system when i checked radio button then it checked and data stored in database, but problem is that after i go to next or prev button previous checked not display. please help me i use Ajay pdo
I got this error while creating custom JS file please help me, Uncaught ReferenceError: JQuery is not defined at main.js:2 (anonymous) @ main.js:2
//Custom Js fo slider JQuery(document).ready(function(){ "use strict"; $('#slider-carosel').carofredcel({ responsive:true, width:'100%', cirular:true, scroll:{ items:1, duration:500, pauseOnHover:true }, auto:true, items:{ visible:{ min:1, max:1 }, height:"variable" }, pagination:{ container:".sliderpager",
jQuery stuff I haven't seen before; jQuery(this) and ;(function($) { ... })(jQuery)
I'm working with a jQuery plugin, and it has some unusual coding that I think might be kinda old school. For the sake of my own education, I'm hoping you guys and gals can give me some clarification. First, I see this: var $elem = jQuery(this); I've never seen jQuery(this)... is it the same as $(this)? I did some tests and they appear to be the same, but later in the script the author uses $(this)... so why did he use jQuery(this) in one part and $(this) later? And is there a reason he used $elem
search button interference
Hey, I can't seem to unbind my search button with the function I added <script> $(document).ready(function() { $("searchButton").click(function() { $(this).slideToggle(); }); $("searchButton").click(function() { $("searchButton").unbind(); }); }); </script> It is interfering with the function to my blog archive buttons <script> $('button').each(function() { /* "each" in jQuery lets us
Question about required checkbox
What do I have wrong here? I'm trying to create two scenarios. One checkbox will always be displayed no matter what's included in the URL string. If that's the only checkbox that's visible on the page, it must be checked before submitting the form. However, If 'ref' is present in the URL string (foo.com?ref=201), a second checkbox will appear and one of the two checkboxes needs to be checked. The problem is that when 'ref' is not present in the URL, it's still in the form with 'checked', so the
Please help to find this plugin
Hi, please check this site www.joomforest.com/updates they are using a table where you can sort the columns and search keywords in rows. i checked source and they are using jQuery everywhere, and i'm sure they are using some kind of plugin which does all of these things to table. i can't figure out which jQuery plugin they are using for it, please help thank you very much Florenco
problem with archive's post count positioning
Hi. I'm having a problem that has me really stumped. When I click my blog archive open, say on 2020, the post count number next to that (8), will move down. I can show you here in the before/after pics This one is an old pic before the number has been changed. And this is the after pic And here's the related code : #postcount { font-family:Overpass, Georgia, Arial, Verdana; font-size:17px; color:blue; } <li id="postcount"> <!-- this is the start of a year --> <button type="button" class="special">2020</button>
Need help html Form call Web API
html post below is successfully consumed Web API <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <h1>Complex Type</h1> <form id="form1" method="post" action="api/updates/complex" enctype="application/x-www-form-urlencoded"> <div> <label for="status">Status</label> </div> <div> <input name="status" type="text" /> </div> <div> <label for="date">Date</label>
Checking URL for one of three values
What's the best way to write an if statement to check if test is either equal to 200, 300 or 400? if (window.location.href.indexOf('?test=') = 200) if (window.location.href.indexOf('?test=') = 300) if (window.location.href.indexOf('?test=') = 400)
blog archive spacing between the years
Having a problem where the spacing of the years in my archive aren't all the same. The first two are fine, but then as you look down, it increases, then the last two are fine again. How can I fix this? Here's some code : <style type="text/css"> ul { /* These are lists which will have bullet points unless we remove them like this */ list-style-type: none; } li { /* These are the individual list items--the years, the months, the links. We want them to have some space between them to look nicer,
how i can get total price column sum in tfoot sub total amont?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>How to add or remove rows in a table dynamically jQuery </title> <link href="css/bootstrap-4.0.0.css" rel="stylesheet" type="text/css"> <link href="css/styles.css" rel="stylesheet" type="text/css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> /*find varial in textbox*/ function myFunction(){ var test_code = $('#tests').find(':selected').data('testcode');
How to display sub total in text box when item and total price add in row?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> </title> <link href="css/bootstrap-4.0.0.css" rel="stylesheet" type="text/css"> <link href="css/styles.css" rel="stylesheet" type="text/css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function() { var id = 1; $("#butsend").click(function() { var newid = id++; $("#table1").append('<tr valign="top" id="'+newid+'">\n\ <td width="100px"
Animated counter
Greetings, How to make a jQuery script that show dots rather than commas in an animated counter? I created this scholarship graphic using the code below. However, I want to make sure that the numbers display dots only. Any good ideas on decimal separation here? <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script> const formatter = (Intl !== undefined)? new Intl.NumberFormat().format : (t) => t; var a = 0; $(window).scroll(function() { var oTop = $('#counter').offset().top
Need help get QueryString Params and print it
Hi, I've html as following, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>jQuery: Get QueryString Params</title> </head> <body> <label id="getParams">Print params</label> </body> </html> Let say QueryString abc.html?id=12345 How to apply jQuery read QueryString ---> id=12345 print 12345 in <label id="getParams">Print params</label> Please help
jQuery CRUD Table Modification
Greetings from Retirement-land! Once again, I call upon those with greater expertise in jQuery/AJAX/Javascript for enlightenment. I'm learning, but "the road is long, with many a winding turn". I have a jQuery CRUD table that I found online that our disc golf indoor putting league is using to keep track of weekly scores. Here's a screenshot: https://lists.roe3.org/mdrone/EDGE/PLIM.png The [Add Player] button adds a row at the bottom with all "text" input fields at the bottom. Editing is click the
jQUERY : FAMILY TREE
Dear Sir Find below link to creae Familty Tree. http://prajaktasoftware.com/marathetree/family_tree-master We can creates muliple wives and children I have 2 challenges 1. ) Create JSOn file as an output 2 ) Allow to edit instead of view pls psl help
having extra buttons in code
Hey, so I have this CSS code : button:before { /* :before is a "pseudoelement" which lets us put something on the page (before or after an element, in this case, all buttons) using only CSS */ content: "►"; /* This has to be inline-block for the transform below to work */ display: inline-block; color:#000; font-family:Overpass, Georgia, Arial, Verdana; font-size:18px; position:relative; top:0px; left:0px; cursor:pointer; z-index:9999; text-shadow:none; } And am having problems
date picker calendar not working with jquery-latest.js. Need a solution for this.
Hi, Basically am trying to make the date picker calendar to work with jquery-latest.js and jquery-ui-latest.js. It is not working. However, calendar date picker works fine with jquery-1.12.4.js and jquery-ui.js. Any thoughts/ideas to make the date picker calendar work with jquery-latest.js, Please let me know, Thanks so much for all your help.
Jquery Keyboard Trap
I am trying to implement a modal dialog keyboard trap and can't seem to figure out why it isn't working as expected. I have included a jsfiddle below showing the code. In theory if a user is tabbing through the buttons using a keyboard once it reaches that last button it should jump to the first button. If a user is using shift and tabbing it should jump to the last button when the first button is reached. As you can see it actually skips the intended button in which I am directing focus. I would
move item with specific element drag and drop jquery
Chung cư n01 t6 t7 Ngoại Giao Đoàn – Lựa chọn hoàn hảo cho cuộc sống mới! Theo nghiên cứu của những năm gần đây, tại các thành phố lớn như HCM, Hà Nội thì nhu cầu ở chung cư của người dân ngày càng tăng nhanh do sự phát triển của kinh tế xã hội và làn sóng tăng trưởng của người lao động, nhập cư. Vì vậy mà nhiều dự án chung cư ra đời nhằm tạo nên một cuộc sống ổn định cho con người và chung cư n01 t6 t7 ngoại giao đoàn cũng là một trong những lựa chọn hoàn hảo cho cuộc sống mới hiện nay! 3 lý do
Collapse not even working on the demo, can't get it to work on site either.
I followed the documentation to use this but the collapsable = true not working in Chrome on Mac. High Sierra. If you look at the screen shot, the demo doesn't work either, at least for me. Is there any possible browser setting that might cause this or os it deprecated? Seems simple but ours also loads with the first section open. The page is private at the moment but https://jqueryui.com/accordion/#collapsible is loading with all open as well for us. I don't see anyone asking the same question.
Duplicate error message printing if user click button multiple times
i am trying to validate user form input field using jQuery. it is validating correctly but error message showing multiple times if i clicked submit button multiple times. it has to clear previous message before printing new one. My JQuery Code is: $(document).ready(function(){ $('#createUserForm').unbind('submit').bind('submit', function(){ var username = $("#userName").val(); if(username == ""){ $("#userName").after('<p class="text-danger">Username required ?</p>');
Updating jquery version from 1.7 to 3.4.1.
Updating jquery version from 1.7 to 3.4.1. While running the application in chrome browser getting below error. TypeError: 'undefined' is not a function (evaluating 'e.getAttribute("type")') /js/jquery.js:2 in Pe /jquery.js:2 /jquery.js:2 in Ie CURRENT VERSION :Jquery-3.4.1.js
Sort Category and subcategory
I have menu with category and sub category. My problem is when I click on a sub category, for example when I click Sub Category B, nothing will be shown. This issue is related to this line: var toSortId = $(this).attr("id"); Which will give us category b and element click. this my jsfiddle
display Image by width and height
hi. I am using jquery fullscreen. I want element to be full screen but The element is full width and not full height. How do I view this topic in full screen from a width and height? thanks
Filter table by multiple user text inputs separated by a comma
Hi,everyone! I'm pretty much a noob here and seek a little help. I have a data table and i've added option to filter out rows matching 4 different criteria. You can see it all in this fiddle: https://jsfiddle.net/billynass/1z7908up/1/ So far it works great,however it works only by entering a single "value" in each input field. What i'd like to add is option to enter multiple column values in the same input field separated by a comma - f.e. in input field "code" i would like to enter "A3,EE" and it
i have got two dates , i have to generate all dates in between them and store them in an array.(jquery 1.12.1) vs2019
hi, var arr =[{"date":"10/dec2019"},{"date": "11/dec/2019"}] // and so on between 10 dec 2010 to 10 dec 2020 above thing can be done using lemda , but pls do not use it as it is not working in my environment , it is working in fiddel. so pls solve with out lembda.
Slider not dragging on Mobile
https://dev8.onlineinfluxdev.co.uk/ Is the site. The slider on the Homepage works perfectly on a Desk Top but not on a Mobile. Touch works but it won't drag and I can't see why. I presume something is missing but I don't know what it is. Thanks
JQUERY on Mobile
Is it possible to view JQUERY error messages or JavaScript error messages on a Mobile? I have a slider that works on a Desktop but not on a Mobile and I would like to see if there are any JQuery errors? If it is possible how? Thanks
jQueryMobile loses fixed navbar + Issue with adding dynamic button at header + Issue with static Footer
Have setup a small Mobile App using JQuery Mobile. Kindly find it in following link. Need your help to resolve three issues as described follows. https://jsfiddle.net/supabitra/hceza13o/ Issue 1: "Nav-Panel disappearing from Root Page:" Steps to reproduce: 1. Click JSFIDDLE link. Note that the Nav-Panel has few tabs - Page 1, 2, etc. 2. Click the button at left-top of Root Page header 3. Click “Goto Sub Page” button; which will land up in Sub Page 4. Click the back button
how to get objects from array which is a value of a key in json.
hi, i have to get the value of key ScurvepPlanData from following json, which is an array. then i have to itrate each object. pls tel me how to do it. "ScurvePlanName": "PipeTrack",
"ScurvePlanData": [{
"Levels": "Mechanical",
"Scope": null,
"StartDate": null,
"EndDate": null,
"Weightage": {
"$numberDouble": "20"
},
"ParentLevels": "",
"ActivityId": null,
"IsInternal": false
}, {
"Levels": "Welding",
JavaScript division
Hello there, I'm doing a simple division like this in JavaScript var A = $('#Up').val(); //0.3
var B = $('#Down').val(); //3
var result = A/B; //0.09999999999999999 Windows calculator or calculator on my phone gives me 0.1. So it is doing rounding. Instead of 0.1 why am I'm getting 0.09999999999999999 when I divide 0.3/3? Joe
only copy selected items to clip board
My form as a checkbox next to each line, this checkbox will exclude those items from copying to the clipboard. Is there a way using JQuery to exclude items from copying to the clipboard, but keep the remaining non checked items? if they select, State, Price and Agency, then they should not be copied to the clipboard, but Manager and Name should be. <div id="Sales"> <div class="sale"> <input type="checkbox" id="salesId_1" value="state"/><label for="State">State/label> <input type="checkbox"
how to populate update form with multiple select on jquery laravel
i want to show when update data in multiple select via jquery to laravel my Controller $get_user->region = $region; $get_user->nama_customer = customer_name($get_user->kode_customer); $ispector = array(); $get_inspector = DB::table('tabel_inspector') ->where('kode_user',$id) ->first(); if(isset($get_inspector)){ $all = explode(',',$get_inspector->list_customer); foreach($all as $a){ $inspector[] = $a; } $get_user->list_inspector = $inspector; } return response()->json($get_user); My Jquery, in jquery
Access an external website and trigger a button click
Is it possible to use JQuery and access an external website and trigger a button click on that site? For example on this site there is the button "Click me!": https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_test Would it be possible to access that site and click the button? And if so, how would that be done?
Jquery Button Not Firing
Okay, I have been playing around with this all day and it just doesn't want to work. <button id="target">click me</button> <script> alert("firing"); $(document).ready(function() { $("#target").click(function() { alert( "Handler for .click() called." ); }); }); </script> The first alert is firing but the alert within the event listener click isn't!
Next Page