19428 4
What does Content type and data type mean in jQuery ajax request?

I have been working with jQuery for some time now, & while I was working on Ajax GET, iPOST methods, I am not able to understand exactly, what is  content-type and datatype in a POST request, in this example request

...
Type
Question
3594 2
How to get an element by its data-id using jquery?

I need to fetch element using "data-id" attribute of HTML, using jquery, here is the element

...
Type
Question
11945 4
How to validate jQuery form validation on button click?

I am using jQuery validation plugin in my form, but I am not able to show validation errors on button click using the above plugin, in my form.

Here is my code

...
Type
Question
3172 1
how to create Owl carousel?

Hi,

 

Please, tell me, how to create an owl carousel?

plz 

...
Type
Question
7886 2
change jQuery validate error position

I am using jQuery Validate to validate my form, it is placing errors in a position which is not appropriate for my forms, I want to change the position of error placement in it, but not to find a solution.

My jQuery code:

$('#content form:first').validate({
            rules: {
                MSRP: {
                    number: true
                },
                SellingPrice: {
                    number: true
                },
                BoxDimensionHeight: {
                    number: true
                },
                BoxDimensionWidth: {
                    number: true
                },
                BoxDimensionDepth: {
                    number: true
                },
                BoxWeight: {
                    number: true
                }
            },
            ignore: ':not(select:hidden, input:visible, textarea:visible)',
           
        });

HTML Code:

<div class="row ">
 <label class="control-label col-md-2 col-sm-12 col-xs-12">
   Name<span class="required">*</span>
 </label>
 <div class="col-md-10 col-xs-12 col-sm-12" style="padding:0">
   <div class="fg-line">
     <input class="form-control" id="Name" name="Name" required="" type="text" />
   </div>
 </div>
</div>

the output of code:

...

Type
Question

2534 2
best way to redirect user using jquery-javscript?

I have seen many methods like window.location.href=url, window.location.replace(...) and window.location, but can anyone tell me which is the best method to redirect user from one webpage to another using jQuery or javascript?

thank you

...
Type
Question
4281 3
how to find if specific element exists in html

I am trying to stick the ads on website while user scroll it, using the code below

...
Type
Question
2901 3
how to allow only numbers in textbox using jquery

I have a web application and i want a textbox in which user cannot type any thing expcet numeric(0-9) data.

How can we achieve this using jquery?

thanks

...
Type
Question
5216 3
how to scroll to div smoothly on click using jquery

I want to scroll to a div on button using jquery, which is working, but as a i was expecting, what i need here to scroll to div smothly(with animation), but it is jumping to a div directly(no animation or smotth scroll) on button click, my jquery code is

...
Type
Question
4879 3
on click not working on dynamically created element

As i know and understand that for dynamically created element, we need to write jquery function like

...
Type
Question

Page 5 of 6