Digital Point » jQuery
23 FOLLOWERS
This section of the forum is dedicated to topics revolving around the jQuery JavaScript library.
Digital Point » jQuery
10M ago
Hello all,
I have written a piece of jquery like so:
$('.impact-item').on('click', function (e) {
e.preventDefault();
var id = $(this).attr('data-related');
$(".impact-modal-box").each(function () {
if ($(this).attr('id') == id) {
$('.impact-modal').addClass('active');
$(this).addClass('active');
$('.chart-impact').addClass('scaled-down');...
jQuery - how to close any open data-related items to open correct one ..read more
Digital Point » jQuery
1y ago
Sorry for newbie question, the code contains the following:
var trElem = $("#structure tr#"+rowId);
1. Is that jQuery?
2. What does structure and the whole #structure tr# mean ..read more
Digital Point » jQuery
1y ago
Anyone ever get Jquery uploads to work with their HTML form? I'm using PHP SDK along with this, sending it as FormData. The problem is I keep getting a errors. If I just send the form they supply, signed by PHP api it works fine. When I try to incorporate jquery with any dataType other than jsonp I get CORS error. With jsonp I get 403. Which is a credentials error.
I've set ths header on the top:
header('Access-Control-Allow-Origin: http://localhost');
Code (markup):
My jquery is like...
Google Cloud Storage ..read more
Digital Point » jQuery
1y ago
Hi guys,
I wanted to know, would it be faster to link to my own copy of jquery.js or jquery.com's?
Thanks in advance,
-Tony ..read more
Digital Point » jQuery
1y ago
Hello friends
I ran into a problem that I hope you can help me with.
The website I am building opens articles in a popup page. I want to add a comment section for articles.
But the problem is that in mobile phones, data entry form does not activate by touch (so I can’t enter information). And this problem does not exist in the computer.
so, It seems the form’s inputbox works with mouse click, but it does not work with a touch.
What could be the reason?
you can see the problem here:...
The input form does not work in mobile popup ..read more
Can someone please explain statement - $("select", $tbApplications).val("-").on("change", function ?
Digital Point » jQuery
1y ago
Is the code only looking for all dropdowns under $tbApplications or is it is looking for dropdowns outside and inside of $tbApplications?
<table id="tblApplications">
<tbody id="tbApplications">
<tr id="trApplication_10147658" data-applicationid="10147658">
<td data-applicationid="10147658" data-reviewerid="87848165" data-placement="bottom" data-toggle="popover" data-content="<strong>Name:</strong> Hachem,...
Can someone please explain statement - $("select", $tbApplications).val("-").on("change", function ..read more
Digital Point » jQuery
1y ago
//Code that I have tried but it doesnt work:
$('#historyOfStatus table td').not(':contains("Revisions Required – CM")').parents("tr").remove();
<div id="historyOfStatus">
<table>
<tbody>
<tr>
<th>Value</th>
<th>Date Time</th>
<th>By</th>
</tr>
<tr>
<td >Draft</td>
<td >2022-11-14 13:34:31</td>
<td >Muhammad Akhtar</td>
</tr>
<tr>
<td >Revisions Required – CM</td>
<td >2022-11-14 13:40:18</td>
<td >a</td>
</tr>...
How can I remove al ..read more
Digital Point » jQuery
1y ago
My theme uses this hardcoded code:
<div ></div>
HTML:
I am looking to fadeout the background image as defined above and fadein a new image after 5 seconds. This loop should repeat every 5 seconds with additional images. Is this possible using Jquery ..read more
Digital Point » jQuery
1y ago
I am trying to add data from a select dropdown to a table so in the first table td cell it would display the service name then in the second table td cell it would display the service cost.
I found this on the forum https://stackoverflow.com/questions/41034014/how-to-add-dropdown-selected-data-to-table-using-jquery which works but just adds the service name only so am trying to amend it so it adds the service cost to the second table td cell but am getting stuck with it. It's not...
How to add dropdown selected data to table using jquery ..read more
Dynamically pass parameter in js inside dynamically created
Digital Point » jQuery
2y ago
Hello!
I have this script which dynamically creates divs. I would like to pass parameters to the controller and be able to visualize the booking form after clicking Book button.
I would really appreciate if someone tells me what I am doing wrong and how can I get the id and pass it to the controller.
<script type="text/javascript" >
document.getElementById('showAll').addEventListener('click', showAll);
function showAll() {
fetch('http://localhost:8080/accommodations')
.then(response...
Code (markup):
dynamically pass parameter in js inside dynamically created <div> ..read more