-
How to pass the attribute value of a variable + string in the argument of .css () in jQuery
original code:
$bars[i].style.top =160 - height + sinTable[(ang + (i * freq)) & 4095] * height + px ;
$bars[i].style.height = height2 + px ;
but it seems that .style is rare, so I m going to use .css instead:
var style={
top:160 - heig...
-
Jquery sibling, clicked and did not respond. I don't know what the problem is.
the effect you need to achieve is to click on a link and add class= "on " to .bofangqi dd div.
The code written by is as follows:
$(".bofangqi dd").on("click",function(){
$(this).find("div").addClass( on ).si...
-
How to sort using JS
the details are as follows Zhang San s score is 98, Li Si s score is 65, Wang Wu s score is 75 how to sort by score and show his score and name. Could you tell me how to sort from high to low with JS? Thank you very much. ...
-
How to solve the problem that the page has been imported into jquery.form, report $(.). AjaxSubmit is not a function?
as shown in the picture, jquery.form.js has been imported, and then jquery in order, but still reported an error. Ask God for advice
...
-
How to select all, not all, in the latest version of jquery.
in learning sharp jquery, I encountered a problem when I introduced the old version of jquery (version 1.71 in the book) and the latest version of jquery when the structure and content of html were the same. has a total of four check boxes, which work...
-
JSON and parsing problems
the logic for the background to return the json result is
Map<String, Object> resultMap = new HashMap<>();
resultMap.put("userType", userType);
resultMap.put("phone", phone);
resultMap.put("channel&q...
-
How does js calculate the difference between two dates by months and days?
for example, 4.1-8.2 is 4 months and 2 days ...
-
How to use Google Maps to draw rounded rectangles?
this is what I m using now
var rectangle = new google.maps.Rectangle( {
strokeColor : -sharpFF0000 ,
strokeOpacity : 0.8,
strokeWeight : 0,
fillColor : -sharp575757 ,
...
-
Get in js when using function methods
when looking up the map method in jq, the W3C document has this code
$("p").append( $("input").map(function(){
return $(this).val();
}).get().join(", ") );
after searching get (), there is no relevant explanation. What ...
-
Is there a better element panning and zooming plug-in than panzoom?
panzoom is very good, with a full range of properties and events, but it s a bit stuck to use. Is there a js or JQ plug-in that is easier to use than panzoom? needs to pan and zoom more smoothly. ...
-
JQuery selector problem, how to accurately select one of the classes of the same name
$(".questionClass>input[type= text ]").val(imgList.join(","))
now that there are four questionClass classes, I need to pinpoint the input, under a certain questionClass in this selector.
...
-
Excuse me, why is the js of the same segment normal on PC, but not on mobile?
Why is the js of the same segment normal on PC but not on mobile?
html call code:
<div id="pgbtn" class="pgbtn_page">
<a class="page_a" href="javascript:;" rel="forum.php?order={$_GET[ orde...
-
How to make a menu that appears from the right and has a slippery feel?
want to find an example of a list click on a list of Tibetan dishes that can click on the right button to appear to the left and then go back to the right when you take it back I don t know what keywords to use to check what is the name of this tec...
-
How does the modal fuzzy box in bootstrap get the click button event?
I encapsulated a js function myself! There are some problems with using . I set callback, to increase as the number of clicks increases, so does the number of execution. I don t know why!
functions encapsulated by js
showConfirm(title , content , sh...
-
Textarea segment spacing tagging
textarea how to let users wrap the code before carriage enter with a P element each time they press enter or how to achieve segment spacing (not line spacing) ask for advice ...
-
Vue acquires the data in data
hotspotinformation
hotspotsmessage
the current requirement is that 16 pieces of data are randomly obtained from hotspotmessage, and then it is shown that the calculation attribute hotspots has implemented this requirement. now I want to click on t...
-
Using jquery to control checkbox? The premise is that when the php value is set.
this situation is a bit complicated. the front end shows: first of all, I have a list that will have the member s name plus checkbox (follow) on a date I will display the name of the member with the last day PS:. My form does not have a subscriptio...
-
How does js prompt Uncaught TypeError to solve it?
error prompt: Uncaught TypeError: autopbn.getAttribute is not a function at exauto_ajax_page.js?s1m:10
var autopbn = $( autopbn );
var nextpageurl = autopbn.getAttribute( rel ).valueOf(); Uncaught TypeError: autopbn.getAttribute is not a function...
-
How can multiple png files let him get away?
want to check how many png files there are. I want him to run in sequence, so it will be very much like the gif action. how can this be done? ...
-
Vue Baidu home page my concern in dragging div is how to achieve?
div
divcss
when dragging to the middle left, there is also a dotted frame on the left, and when you let go, the dragged div is docked on the left. if you drag to the middle right, the dragged div will dock to the right when you let go.
[if my ...