Skip to main content

All Questions

Tagged with
1 vote
1 answer
21 views

Set content in Redactor textarea

I want to use jQuery to grab the id from a hyperlink. <a class="aDirectReply" id="user1234">Respond to user1234</a> then set the content of a redactor textarea <...
user460114's user avatar
  • 1,887
0 votes
0 answers
35 views

jQuery selector keeps returning an empty string [duplicate]

I don't know if it's the [data-a-target="smc-detail-page-thank-you-summary-amount-collected-date"] jQuery selector that the browser doesn't like, but I keep getting an empty string and fail ...
NaturalBornCamper's user avatar
0 votes
0 answers
36 views

Duplicate Element after using L.DOMUtil Leaflet

I create sidebar, and want to add (append) it to map using L.DomUtil **This JS Code: ** //Create Custom Bar Left L.Control.MyControl = L.Control.extend({ onAdd: function(map) { var custombar = ...
dvaa's user avatar
  • 43
1 vote
1 answer
103 views

How to add sub sections into an HTML file?

Populate the General Recordings List. For this TODO, you must assemble a new <section> and <ul> for Billy's general recordings data. Unlike TODO 4, there is not a section or unordered list ...
barrington hebert's user avatar
0 votes
0 answers
97 views

DOM XSS JQuery Selector CTF

I found the below JS script in the CTF website's source code. If I understand the script correctly, after the website is loaded, getParameterByName function is called which returns the value of focus ...
Witchur3721's user avatar
1 vote
2 answers
79 views

SOLVED Create dynamically IDs in html form when add a new element and pass then .on change function

I have this code and it works, i can add a new lines and also delete them. The problem is when i select and option from the select input it changes the two inputs with the correct information. When i ...
Achim's user avatar
  • 13
-1 votes
1 answer
52 views

How can I optimize the performance of a jQuery DOM manipulation script that is causing slowdowns on large datasets? [closed]

Are there any other optimization techniques or best practices I can apply to improve the performance of this script? Code snippet: // Simplified example $('#table-body').empty(); data.forEach(...
Tanzeela Fatima's user avatar
2 votes
1 answer
61 views

Writing in TextField, the previous first node not removed from DOM

I'm trying to overwrite 'abc' into MathQuill's TextField with initial text 'xyz' var MQ = MathQuill.getInterface(2); var mySpan = document.getElementById('A'); var textField = MQ.TextField(mySpan);...
hbghlyj's user avatar
  • 167
2 votes
1 answer
54 views

Setting two classes to the same width/max-width using Javascript

I'm trying to dynamically set two divs to the same max-width using javascript.. I have this so far: window.onload = function setWidth() { var one = document.getElementsByClassName("adsm-skin ...
amyday7's user avatar
  • 33
-1 votes
1 answer
36 views

Update Dom With Result from Ajax with Action Event Not Working

I'm Developing a Comment Replay System As any Social Media website But Using YII2 Framework I Created Wedget To Show a list of Comments On Some Items ( like products ) Each Comment is With button &...
عماد الصلاحي's user avatar
0 votes
0 answers
68 views

Change Link Targets in iFrame

I have to use YouTrack in the company I am working for, and it drives me nuts for several reasons. I am now creating a Chrome Extension which helps me calm down a bit. One of the absolutely ridiculous ...
Filib's user avatar
  • 1
2 votes
1 answer
74 views

Datatable- How to custom sort one column by different values every times from rendered html element

Let's assume the cell of the Datatable are rendered like this: columnDefs: [ { targets: 0, type: 'percent', render: function (data, ...
Web Star's user avatar
  • 432
1 vote
2 answers
240 views

Keeping tabindex order logical within a slider displaying multiple items

My website has carousel/slider panels with tabbed navigation. Each panel shows a "river" of book covers. 5 covers are shown at a time and clicking next/prev slides 3 books out and 3 new ...
liberty_bell_7's user avatar
-1 votes
1 answer
56 views

How to reset values and IDs of input elements which are inside TD elements of a table after dynamically deleting row with jQuery?

I have following table: <thead> <th>SR</th> <th>Object</th> <th>Weight</th> <th>Color</th> <th>Shape</th>...
Vaibhav Yawalkar's user avatar
3 votes
2 answers
146 views

Open a collapsible parent class on page load when a child class is active

I have an html page with accordion sections with buttons btn-acc-tab. The sections acc-tab open when a user clicks on a button, and each section contains links tab-link that can be active. The ...
grommit's user avatar
  • 179

15 30 50 per page
1
2 3 4 5
621