Questions




Answers
1
how to maintain aspect ratio using CSS?

Hello, I want to maintain an aspect ratio of a div using CSS, I know we can do it with javascript also, but I would like to maintain aspect ratio using CSS only.

Is there any way to change height according to width, maintaining the aspect ratio using any CSS rule or property?

...

Read More
Answers
1
how to open new tab and insert content in it using javascript?

How can I open a new tab using javascript or jquery and insert new dynamic content in it? Bypassing the pop-up issue also, as I need to show a .pdf file in new window, but you can show me the code of opening and showing HTML in it, I will handle the pdf part.

Thanks

...
Read More
Answers
1
how to add image in folder & image path in db in mvc??

How can i add image path in database, while image in the project folder using ASP.NET MVC C#??
As asked on facebook group

...
Read More
Answers
1
how can i expand input field on click?

How can i expand input field when i click on on search icon, smoothly?

Something similar to above search button on this website

Here is the similar fiddle link, but transition is not smooth in it

...
Read More
Answers
1
how can i simplify url in .NET MVC?

How can I simplify the url to http://localhost:51675/Prescriptions/Create/12 instead of http://localhost:51675/Prescriptions/Create?AssessmentID=12.
currently i am using this code

...
Read More
Answers
2
disable browser back-forward button after logout in MVC

how can I disable browser back-forward button after logging out from asp.net MVC C# web application, I have tried this javascript code

...
Read More
Answers
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:

...

Read More
Answers
1
how can i validate model in asp.net web api?

Hi, anyone know how to make Input Validation in Web API? Data annotations do not work; I want to make it like in MVC [Required] or [RegularExpression] attributes. Any ideas?

I made something like this, but it's not working.

...

Read More
Answers
2
phone number validation in jQuery-javascript?

 How can i validate phone number using jquery-javascript? Suppose, i want to validate phone number for this textbox

...
Read More
Answers
1
how to add-remove property in Javascript Object?

Suppose I have a javascript Object

...
Read More

Page 48 of 51