Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (2024)

One of the most basic and important laws of electric circuits is Ohm’s law.

Ohm’s law states that the voltage across a conductor is directly proportional to the current flowing through it, provided all physical conditions and temperatures remain constant.

Mathematically, this current-voltage relationship is written as,

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (1)

In the equation, the constant of proportionality, R, is called Resistance and has units of ohms, with the symbol Ω.

The same formula can be rewritten in order to calculate the current and resistance respectively as follows:

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (2)

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (3)

In certain components, increasing the current raises the temperature. An example of this is the filament of a light bulb, in which the temperature rises as the current is increased. In this case, Ohm’s law cannot be applied. The lightbulb filament violates Ohm’s Law.

: Ohm’s law states that the voltage across a conductor is directly proportional to the current flowing through it, provided all physical conditions and temperature, remain constant.

: V = IR, where V is the voltage across the conductor, I is the current flowing through the conductor and R is the resistance provided by the conductor to the flow of current.

Relationship Between Voltage, Current and Resistance

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (4)
Analyzing rows 1, 2 and 3, we come to understand that doubling and tripling the voltage leads to doubling and a tripling of the current in the circuit. Likewise, when we compare rows 1 and 4 and rows 2 and 5, we come to understand that doubling the total resistance serves to halve the current in the circuit.

Water Pipe Analogy for Ohm’s Law

Ohm’s Law describes the current flow through a resistance when different electric potentials (voltage) are applied at each end of the resistance. Since we can’t see electrons, the water-pipe analogy helps us understand the electric circuits better. Water flowing through pipes is a good mechanical system that is analogous to an electrical circuit.

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (5)

Here, the voltage is analogous to water pressure, the current is the amount of water flowing through the pipe, and the resistance is the size of the pipe. More water will flow through the pipe (current) when more pressure is applied (voltage) and the bigger the pipe (lower the resistance).

The video below shows the physical demonstration of the Waterpipe analogy and explains to you the factors that affect the flow of current

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (6)

Experimental Verification of Ohm’s Law

Ohm’s Law can be easily verified by the following experiment:

  • Resistor
  • Ammeter
  • Voltmeter
  • Battery
  • Plug Key
  • Rheostat


Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (7)

  1. Initially, the key K is closed and the rheostat is adjusted to get the minimum reading in ammeter A and voltmeter V.
  2. The current in the circuit is increased gradually by moving the sliding terminal of the rheostat. During the process, the current flowing in the circuit and the corresponding value of potential difference across the resistance wire R are recorded.
  3. This way different sets of values of voltage and current are obtained.
  4. For each set of values of V and I, the ratio of V/I is calculated.
  5. When you calculate the ratio V/I for each case, you will come to notice that it is almost the same. So V/I = R, which is a constant.
  6. Plot a graph of the current against the potential difference, it will be a straight line. This shows that the current is proportional to the potential difference.

  • Kirchhoff’s Law
  • Faraday’s Laws
  • Laws of Thermodynamics

Ohm’s Law Magic Triangle

You can make use of Ohm’s law magic triangle to remember the different equations for Ohm’s law used to solve for different variables(V, I, R).
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (8)
If the value of voltage is asked and the values of the current and resistance are given, then to calculate voltage simply cover V at the top. So, we are left with the I and R or I × R. So, the equation for Voltage is Current multiplied by Resistance. Examples of how the magic triangle is employed to determine the voltage using Ohm’s law are given below.

Ohm’s Law Solved Problems

Example 1: If the resistance of an electric iron is 50 Ω and a current of 3.2 A flows through the resistance. Find the voltage between two points.

If we are asked to calculate the value of voltage with the value of current and resistance, then cover V in the triangle. Now, we are left with I and R or more precisely I × R.

Therefore, we use the following formula to calculate the value of V:

V = I × R

Substituting the values in the equation, we get

V = 3.2 A × 50 Ω = 160 V

V = 160V

Example 2: An EMF source of 8.0 V is connected to a purely resistive electrical appliance (a light bulb). An electric current of 2.0 A flows through it. Consider the conducting wires to be resistance-free. Calculate the resistance offered by the electrical appliance.

When we are asked to determine the value of resistance when the values of voltage and current are given, we cover R in the triangle. This leaves us with only V and I, more precisely V ÷ I.

Substituting the values in the equation, we get

R = V ÷ I

R = 8 V ÷ 2 A = 4 Ω

R = 4 Ω

Calculating Electrical Power Using Ohm’s Law

The rate at which energy is converted from the electrical energy of the moving charges to some other form of energy like mechanical energy, heat energy, energy stored in magnetic fields or electric fields, is known as electric power. The unit of power is the watt. The electrical power can be calculated using Ohm’s law and by substituting the values of voltage, current and resistance.

Formula to find power

When the values for voltage and current are given,
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (9)
When the values for voltage and resistance are given,
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (10)
When the values for current and resistance are given,
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (11)

What is a Power Triangle?

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (12)

The power triangle can be employed to determine the value of electric power, voltage and current when the values of the other two parameters are given to us. In the power triangle, the power (P) is on the top and current (I) and voltage (V) are at the bottom.

When the values of current and voltage are given, the formula for finding power is,
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (13)
When the values of power and voltage are given, the formula for finding current is,
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (14)
When the values of power and current are given, the formula for finding voltage is,
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (15)

Ohm’s Law Pie Chart

To better understand the relationship between various parameters, we can take all the equations used to find the voltage, current, resistance and power, and condense them into a simple Ohm’s Law pie chart as shown below.
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (16)

Ohm’s Law Matrix Table

Like Ohm’s Law Pie Chart shown above, we can condense the individual Ohm’s Law equations into a simple matrix table as shown below for easy reference when calculating an unknown value.
Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (17)

Ohm’s Law Applications

The main applications of Ohm’s law are:

  • To determine the voltage, resistance or current of an electric circuit.
  • Ohm’s law maintains the desired voltage drop across the electronic components.
  • Ohm’s law is also used in DC ammeter and other DC shunts to divert the current.

Limitations of Ohm’s Law

Following are the limitations of Ohm’s law:

  • Ohm’s law is not applicable for unilateral electrical elements like diodes and transistors as they allow the current to flow through in one direction only.
  • For non-linear electrical elements with parameters like capacitance, resistance etc the ratio ofvoltage and current won’t be constant with respect to time making it difficult to use Ohm’s law.

The video about conductance, resistance, and ohm’s law

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (18)

Frequently Asked Questions – FAQs

Q1

What does Ohm’s law state?

Q2

What can Ohm’s law be used for?

Ohm’s law is used to validate the static values of circuit components such as current levels, voltage supplies, and voltage drops.

Q3

Is Ohm’s law Universal?

No. Ohm’s law is not a universal law. This is because Ohm’s law is only applicable to ohmic conductors such as iron and copper but is not applicable to non-ohmic conductors such as semiconductors.

Q4

Why is Ohm’s law not applicable to semiconductors?

Ohm’s law doesn’t apply to semiconducting devices because they are nonlinear devices. This means that the ratio of voltage to current doesn’t remain constant for variations in voltage.

Q5

When does Ohm’s law fail?

Ohm’s law fails to explain the behaviour of semiconductors and unilateral devices such as diodes. Ohm’s law may not give the desired results if the physical conditions such as temperature or pressure are not kept constant.

Watch the video and solve important questions in the chapter Electricity Class 10

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (19)


Stay tuned to BYJU’S and Fall in Love with Learning!

Test your Knowledge on Ohms Law

Q5

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (20)

Put your understanding of this concept to test by answering a few MCQs. Click ‘Start Quiz’ to begin!

Select the correct answer and click on the “Finish” button
Check your score and answers at the end of the quiz

Congrats!

Visit BYJU’S for all Physics related queries and study materials

Your result is as below

0 out of 0 arewrong

0 out of 0 are correct

0 out of 0 are Unattempted

Login To View Results

Did not receive OTP?

Request OTP on

Login To View Results

PHYSICS Related Links
Kirchoffs Laws Current Electric
Resistance Electricity Lcr Series Circuit
Emf Equation Self And Mutual Induction
Lenzs Law Faraday's Law Of Electromagnetism
Charge Transfer Conservation Of Charge

Comments

Leave a Comment

  1. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (22)
    Venkatesh August 8, 2019 at 12:29 am

    Nice app to a students

    Reply

  2. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (23)
    abdullah January 5, 2020 at 11:55 pm

    thanks sir

    Reply

  3. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (24)
    Tayerera kudzai May 9, 2020 at 6:22 pm

    Nice app for us

    Reply

  4. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (25)
    Ramita September 12, 2020 at 4:07 pm

    Very good

    Reply

  5. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (26)
    shanti yadav September 14, 2020 at 8:57 pm

    nice thank u sir

    Reply

  6. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (27)
    Mishu Mazumder Sourov October 4, 2020 at 1:35 am

    Very useful study material

    Reply

  7. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (28)
    Yk prasad October 21, 2020 at 4:57 pm

    Good explanation!

    Reply

  8. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (29)
    Kumar November 2, 2020 at 10:40 pm

    These are good material

    Reply

  9. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (30)
    Faiz Comrade December 17, 2020 at 6:41 pm

    Like
    Very thanks 💐 byju ‘s team
    Very helpful notes
    Me is se apni project file banaya
    I like this app
    Very very thanks

    Reply

  10. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (31)
    Eman December 31, 2020 at 5:45 am

    Best

    Reply

  11. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (32)
    Kaashika shri January 7, 2021 at 8:21 pm

    I love this notes thank you Byju’s

    Reply

  12. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (33)
    Roshan March 1, 2021 at 10:29 am

    Very nice app to study

    Reply

  13. Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (34)
    Ahmed December 15, 2022 at 8:10 pm

    This is very useful and informative for my 11th annual examination .
    Thank you byjus

    Reply

Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (35)

",i.after(m)}}else{i.find('button[type="submit"]').attr("disabled",!0).html("Submitting..");var p=i.serialize();p+="&current_url="+escape(C_URL),jQuery.post(CONFIG.apis.db.popup_form_api,p,function(e,t){if(e)if(e=JSON.parse(e),e.success){if(CS_UTILITIES.removeToastMessage("page-form-popup-and-widget-0"),i.addClass("hidden"),i.find(".register-form-widget-success-block").length)i.find(".register-form-widget-success-block").removeClass("hidden");else{var r='

';"Popup"==s?(r+='

',r+="
"):(r+='

',jQuery(".join-byjus-form-widget").find(".widget-content").children(":first-child").addClass("text-center")),jQuery("#register-modal-widget").addClass("submitted-successfully"),r+="

Thank you for connecting with BYJU'S!

",r+="
",r+=" Communications regarding lectures & crash courses will be shared with you soon.",r+="

",i.after(r)}"register-popup-form-widget"==i.attr("id")&&MAIN_UTILITIES.setCookie("pagebformypopupj",1,15),GA_FLAG&&ga("send","event",INSTANCE_NAME+" "+s+" Data Form Successful","Form Submission Data Stored","URL: "+C_URL)}else i.find('button[type="submit"]').attr("disabled",!1).html(d),CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0",e.message),GA_FLAG&&ga("send","event",INSTANCE_NAME+" "+s+" Data Form Failed","Form Submission Data Failed","URL: "+C_URL);else i.find('button[type="submit"]').attr("disabled",!1).html(d),CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0","Please try after sometime!")})}}else e.preventDefault(),a.each(function(e,t){jQuery(t).blur()});GA_FLAG&&ga("send","event","Form Data "+s+" Button Click: "+FORM_NAME,"On Submitting Form","Form Values: "+jQuery(t).serialize())}};

',t=document.getElementsByTagName("HEAD")[0],r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.href="/wp-content/themes/html5blank-stable/styles/learn-portal-modal.min.css",t.appendChild(r),jQuery("body").append(o),jQuery("[learn-login-modal]").modal()}return!1}n=LP_LOGIN_POPUP_URL+`/byjus-classes?referrer=${encodeURIComponent(e.toString())}`;window.open(n,"_self")})),jQuery("[data-dropdown-more]").click((function(){-1!==jQuery("[data-dropdown-more]").text().indexOf("More")?(jQuery("[data-dropdown-less]").slideDown(),jQuery("[data-dropdown-more]").text("Less")):(jQuery("[data-dropdown-less]").slideUp(),jQuery("[data-dropdown-more]").text("More"))}))}})),document.querySelectorAll('[data-toggle="class"]').forEach((function(e,a){e.addEventListener("click",(function(e){e.preventDefault();var a=this.getAttribute("data-class-name"),n=document.querySelector(this.getAttribute("data-class-target"));if(n.className){var o=n.className.split(" ");if(-1!=o.indexOf(a)){var t=o.indexOf(a);o.splice(t,1)}else o.push(a);n.className=o.join(" ")}}))}));var isMobileTablet=navigator.isMobileTablet;function getParamValueByName(e,a){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^]*)|&|#|$)").exec(a);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):""}function replaceAll(e,a,n){return n.split(e).join(a)}function getParameterByName(e,a){a=a?"?"+a:window.location.search;var n=new RegExp("[?&]"+e.replace(/\[/g,"\\[").replace(/\]/g,"\\]")+"(?:=([^]*))?(?:[]|$)").exec(a);return n?n[1]?decodeURIComponent(n[1].replace(/\+/g," ")):"":null}isMobileTablet&&(document.querySelectorAll(".big-menu").forEach((function(e,a){const n=e.getElementsByClassName("primary-dropdown-menu-icon");e.addEventListener("click",(function(e){if(window.matchMedia("(min-width: 768px)").matches||0===n.length){this.classList.toggle("menu-open"),$(this).siblings().removeClass("menu-open")}}));for(const a of n)a.addEventListener("click",(function(a){a.stopPropagation(),e.classList.toggle("menu-open"),$(e).siblings().removeClass("menu-open")}))})),document.querySelectorAll(".sub").forEach((function(e,a){e.addEventListener("click",(function(e){jQuery(this).siblings().removeClass("menu-open-sub"),this.classList.toggle("menu-open-sub"),jQuery(this).parent().siblings().children("ul").toggle(!1),e.stopPropagation()}))}))),$(".sub").mouseenter((function(){$(this).find("ul").height()<340&&$(this).find("ul").addClass("right-popopen")})),$(".primary-dropdown-menu>ul>.sub>ul>.sub").mouseenter((function(){$(this).find("span").length&&$(this).find("ul").addClass("more-less-open")}));var isOpenDesktop={isOpen:!1,className:"data-header-search"},isOpenMobile={isOpen:!1,className:"data-header-search-mobile"};function disableSearch(e){return jQuery("["+e+"]").empty(),jQuery("["+e+"]").addClass("hidden"),jQuery("["+e+"]").removeClass("header-form-content-enable"),jQuery(".primary-top-navbar").removeClass("primary-top-navbar-search"),!1}function enableSearch(e,a){if(!1===a)return jQuery("["+e+"]").removeClass("hidden"),jQuery("["+e+"]").addClass("header-form-content-enable"),jQuery(".primary-top-navbar").addClass("primary-top-navbar-search"),jQuery("["+e+"]").append('

'),jQuery("input[name='s']").focus(),!0;var n=$(".header-searchbox"),o=$("[data-header-search-input]").val();return 0===(o=jQuery.trim(o).length)?(jQuery("["+e+"]").empty(),jQuery("["+e+"]").addClass("hidden"),jQuery("["+e+"]").removeClass("header-form-content-enable"),jQuery(".primary-top-navbar").removeClass("primary-top-navbar-search"),!1):(n.submit(),!0)}if(jQuery(document).ready((function(){var e=jQuery(".search-icon"),a=jQuery(".search-icon-mobile");e.click((function(){isOpenDesktop.isOpen=enableSearch(isOpenDesktop.className,isOpenDesktop.isOpen)})),a.click((function(){isOpenMobile.isOpen=enableSearch(isOpenMobile.className,isOpenMobile.isOpen)})),jQuery(".header-form-content").click((function(e){e.stopPropagation()}))})),jQuery(document).on("click",(function(e){jQuery(e.target).closest(".search-icon").length||jQuery(e.target).closest(".search-icon-mobile").length||(1==isOpenDesktop.isOpen?isOpenDesktop.isOpen=disableSearch(isOpenDesktop.className):1==isOpenMobile.isOpen&&(isOpenMobile.isOpen=disableSearch(isOpenMobile.className)))})),"jee"==INSTANCE_NAME||"neet"==INSTANCE_NAME){jQuery(".primary-top-navbar .navbar-brand img").attr("src","https://cdn1.byjus.com/byjusweb/img/akash-byjus-jee-neet-assets/akash_byjus_logo_22_6_21.jpg"),jQuery(".primary-navbar-header-collapse .primary-top-navbar-collapse-icon img.primary-mbl-logo").attr("src","https://cdn1.byjus.com/byjusweb/img/akash-byjus-jee-neet-assets/akash_byjus_logo_22_6_21.jpg"),jQuery(".primary-top-navbar .navbar-brand img").addClass("ak-bj-logo");var byjusHomeRedirectBtnDesktop=jQuery(".primary-tooltip"),byjusHomeRedirectBtnMobile=jQuery(".call-icon-mobile").parent();jQuery(".navbar-brand").attr("href","https://byjus.com"),jQuery(".primary-navbar-header .navbar-brand img").attr("src","https://cdn1.byjus.com/byjusweb/img/akash-byjus-jee-neet-assets/akash_byjus_logo_22_6_21.jpg"),jQuery(".primary-top-navbar .navbar-brand img").addClass("ak-bj-logo")}

Register with BYJU'S & Download Free PDFs

Register with BYJU'S & Watch Live Videos

"),!1):(a.removeClass("input-error"),a.addClass("input-valid"),!0)}function phoneNumberValidation(e,r,s,a,i,n,o=""){MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!1,phoneNumberFromSendOtpResponse="";var t,d,l,p,_,T=jQuery(e),m=T.find("[data-phone-number-input]"),u=T.find("[data-otp-number-input]"),f=T.find("[data-otp-input-field-voice-call-option]"),E=T.find("[data-send-otp]"),A=T.attr("name"),O=jQuery(e).find("[data-otp-validated-img]"),v=jQuery("[data-remaining-fields-container]"),c="",g={};E.click(function(){if("undefined"!=typeof USER_DETAILS_INPUT_VALIDATORS?USER_DETAILS_INPUT_VALIDATORS.phoneValidation(m):UTILITIES.phoneValidation(m)){var e=m.val(),p={phoneNumber:e};if(""==o){if("IAS_QUESTIONS"==n?(c="DEFAULT_IAS_USER_LOCALSTORAGE",g=DEFAULT_IAS_USER_DETAILS):"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"===n||"blc-popup-form"===n?g.verifyKey=generateRandomID():"open-close-rank-jee-main"==n||"jee-neet-talk-to-counselor-form"==n||"sidebar-join-byjus-form"==n||"cat-rank-predictor"===n||"ias-register-now-pop-up-form"==n||"cat-register-now-pop-up-form"==n||(c="DEFAULT_COMMENT_BOX_LOCALSTORAGE",g=DEFAULT_USER_DETAILS),null!==getStorage(c))if(userFromStorage=JSON.parse(getStorage(c)),userFromStorage.verifyKey){var _=new Date,T=("0"+_.getFullYear()).slice(-2)+""+("0"+(_.getMonth()+1)).slice(-2)+("0"+_.getDate()).slice(-2);userFromStorage.verifyKey.substring(17,23)==T?g.verifyKey=userFromStorage.verifyKey:g.verifyKey=generateRandomID()}else g.verifyKey=generateRandomID();else"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"===n||"blc-popup-form"===n||("open-close-rank-jee-main"==n?(g.verifyKey=generateRandomID(),MOBILE_OTP_VALIDATER.storageSessionId=g.verifyKey):g.verifyKey=generateRandomID());"IAS_QUESTIONS"==n?DEFAULT_IAS_USER_DETAILS.verifyKey=g.verifyKey:"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"===n||"blc-popup-form"===n||"open-close-rank-jee-main"==n||"open-close-rank-neet-main"==n||"jee-neet-talk-to-counselor-form"==n||"sidebar-join-byjus-form"==n||"ias-register-now-pop-up-form"==n||"cat-register-now-pop-up-form"==n||(DEFAULT_USER_DETAILS.verifyKey=g.verifyKey),p.verifyKey=g.verifyKey}o?p.page=A:p.type=A,m.addClass("sending");var I=30;E.attr("disabled",!0),E.html('

Resend in '+I+"sec.

"),t=setInterval(function(){--I,I<=0&&(clearInterval(t),E.attr("disabled",!1),E.html("Resend OTP"),m.siblings(".input-error-msg").remove()),E.find("[data-otp-active-timer] span").html(I)},1e3),u.attr("disabled",!1).focus();var D=o?MOBILE_OTP_VALIDATER.apis.bcasSendOtp:MOBILE_OTP_VALIDATER.apis.sendOtp,L=o?0:"undefined"==typeof WT_OTP_ENCRYPTION_ENABLED_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_KEY_VAL||"undefined"==typeof OTP_ENCRYPT_PAYLOAD_WT||0==WT_OTP_ENCRYPTION_ENABLED_VAL||""==WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||""==WT_OTP_ENCRYPTED_DATA_KEY_VAL?0:WT_OTP_ENCRYPTION_ENABLED_VAL;0==L||1==L&&OTP_ENCRYPT_PAYLOAD_WT.isTokenValid(OTP_ENCRYPT_PAYLOAD_WT.getToken())?jQuery.ajax({type:"POST",url:D,data:1==L?JSON.parse(OTP_ENCRYPT_PAYLOAD_WT.sendEncryptedData(JSON.stringify(p))):p,success:function(o,p,_){d=_.getResponseHeader("isverified"),l=_.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.verifyToken="Bearer "+_.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.verifyReference=_.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.mobileNumber=e,o&&"error"===o.status?CS_UTILITIES.addToastMessage(0,"Something went wrong. Please try after some time"):o?"true"===d?(m.after('

'+o.message+"

"),E.addClass("d-none").addClass("hidden"),f.addClass("d-none").addClass("hidden"),m.attr("disabled",!0),m.addClass("otp-verified"),u.attr("disabled",!0),m.siblings(".input-error-msg").remove(),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0,O.removeClass("hidden"),clearInterval(t),E.html("Send OTP"),E.attr("disabled",!1),"PDF_DOWNLOAD"===n&&v.length>0?(GA_FLAG&&ga("send","event","PDF downloaded successfully","PDF downloaded successfully","PDF downloaded successfully"),inputFieldManaged(e,r,s,a,i,n),v.removeClass("hidden")):"COMMENT"==n?inputFieldManaged(e,r,s,a,i,n):"alliance-form"===n?enableSliderInAllianceForm():"COMMENT"==n?inputFieldManaged(e,r,s,a,i,n):"open-close-rank-jee-main"===n?userCheckIfAlreadyExist(e,r,s,a,i,n):"IAS_QUESTIONS"==n&&void 0!==r&&void 0!==s?inputFieldManaged(e,r,s,a="",i="",n):"YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&v.length>0?(GA_FLAG&&ga("send","event","YouTube live video redirection is successful","YouTube live video redirection is successful","YouTube live video redirection is successful"),inputFieldManaged(e,r,s,a,i,n),v.removeClass("hidden")):"PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&v.length>0&&v.removeClass("hidden")):(f.removeClass("d-none").removeClass("hidden"),phoneNumberFromSendOtpResponse=o.number,E.addClass("resend"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!1,m.after('

OTP has been Sent to '+e+"

"),"PDF_DOWNLOAD"===n&&v.length>0||"COMMENT"==n||"VIDEO"==n||"alliance-form"==n||"open-close-rank-jee-main"===n||"YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&v.length>0||"PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&v.length):CS_UTILITIES.addToastMessage(0,"Something went wrong. Please try after some time")},error:function(e,r,s){m.removeClass("sending"),m.siblings(".input-error-msg").remove(),m.after('

'+e.responseJSON.message+"

")}}):CS_UTILITIES.addToastMessage(0,"Session Expired")}else phoneNumberValidation(m)}),u.on("input",function(){if(!MOBILE_OTP_VALIDATER.isPhoneNumberVerified&&(u.siblings(".input-error-msg").remove(),this.isValid=otpValidation(u),this.isValid)){params={phoneNumber:phoneNumberFromSendOtpResponse,otp:u.val()},o?params.page=A:(params.type=A,params.Authorization="Bearer "+l),m.siblings(".input-error-msg").remove(),u.siblings(".input-error-msg").remove(),u.removeClass("input-error");var e=o?MOBILE_OTP_VALIDATER.apis.bcasVerifyOtp:MOBILE_OTP_VALIDATER.apis.verifyOtp,d=o?0:"undefined"==typeof WT_OTP_ENCRYPTION_ENABLED_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_KEY_VAL||"undefined"==typeof OTP_ENCRYPT_PAYLOAD_WT||0==WT_OTP_ENCRYPTION_ENABLED_VAL||""==WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||""==WT_OTP_ENCRYPTED_DATA_KEY_VAL?0:WT_OTP_ENCRYPTION_ENABLED_VAL;0==d||1==d&&OTP_ENCRYPT_PAYLOAD_WT.isTokenValid(OTP_ENCRYPT_PAYLOAD_WT.getToken())?jQuery.ajax({type:"POST",url:e,data:1==d?JSON.parse(OTP_ENCRYPT_PAYLOAD_WT.sendEncryptedData(JSON.stringify(params))):params,beforeSend:function(e){o&&e.setRequestHeader("Authorization","Bearer "+l)},success:function(e,d,l){if(o)E.addClass("d-none").addClass("hidden"),f.addClass("d-none").addClass("hidden"),m.attr("disabled",!0),m.addClass("otp-verified"),u.attr("disabled",!0),m.siblings(".input-error-msg").remove(),O.removeClass("hidden"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0,clearInterval(t),E.html("Send OTP"),E.attr("disabled",!1),"alliance-form"===n&&enableSliderInAllianceForm();else if(p=l.getResponseHeader("otpverified"),"true"===p)if(E.addClass("d-none").addClass("hidden"),f.addClass("d-none").addClass("hidden"),m.attr("disabled",!0),m.addClass("otp-verified"),u.attr("disabled",!0),m.siblings(".input-error-msg").remove(),O.removeClass("hidden"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0,clearInterval(t),"blc-form"!=n&&"job-posting-form"!==n&&"service-counsel"!==n||setTimeout(function(){automateApplyNow()},1e3),E.html("Send OTP"),E.attr("disabled",!1),"PDF_DOWNLOAD"===n&&v.length>0)v.removeClass("hidden"),inputFieldManaged(m.val(),r,s,a,i,n);else if("COMMENT"==n)inputFieldManaged(m.val(),r,s,a,i,n);else if("VIDEO"==n)inputFieldManaged(m.val(),r,s,a,i,n);else if("IAS_QUESTIONS"===n)inputFieldManaged(m.val(),r,s,a="",i="",n);else if("COMMENT"==n)r.removeClass("hidden"),s.removeClass("hidden"),a.removeClass("hidden"),i.removeClass("hidden");else if("open-close-rank-jee-main"===n)userCheckIfAlreadyExist(m.val(),r,s,a,i,n);else if("YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&v.length>0)v.removeClass("hidden"),inputFieldManaged(m.val(),r,s,a,i,n);else if("PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&v.length>0)v.removeClass("hidden");else if("jee-neet-talk-to-counselor-form"==n)jQuery("[data-phone-number-input]").removeClass("input-error"),jQuery("[data-otp-validated-img]").removeClass("hidden");else if("sidebar-join-byjus-form"==n){let e=jQuery("#join-byjus-form-widget");e.find("[data-phone-number-input]").removeClass("input-error"),e.find("[data-phone-number-input]").addClass("input-valid"),e.find("[data-otp-validated-img]").removeClass("hidden")}else"ias-register-now-pop-up-form"==n?(jQuery("[data-phone-number-input]").removeClass("input-error"),jQuery("[data-otp-validated-img]").removeClass("hidden")):"cat-register-now-pop-up-form"==n&&(jQuery("[data-phone-number-input]").removeClass("input-error"),jQuery("[data-otp-validated-img]").removeClass("hidden"));else u.removeClass("input-error"),u.siblings(".input-error-msg").remove(),u.addClass("input-error"),u.after('

'+e.message+"

");"INTERACTIVE_QUIZ"==n&&checkexistinguser(params.phoneNumber,"","","","","INTERACTIVE_QUIZ")},error:function(e,r,s){var a;a=void 0!==e.responseJSON?e.responseJSON.message:e.statusText,u.removeClass("input-error"),u.siblings(".input-error-msg").remove(),u.addClass("input-error"),u.after('

'+a+"

")}}):CS_UTILITIES.addToastMessage(0,"Session Expired")}});var I=T.find("[data-otp-voice-call-cta]");I.on("click",function(){var e=jQuery(this),r=30;e.find("span").html(" "+r+"sec."),e.attr("disabled",!0),u.attr("disabled",!1).focus(),_=setInterval(function(){--r,r<=0?(clearInterval(_),e.find("span").html("Voice Call"),e.attr("disabled",!1)):e.find("span").html(" "+r+"sec.")},1e3)})}var MOBILE_OTP_VALIDATER={isPhoneNumberVerified:!1,isUserAlreadyExist:!1,mobileNumber:"",verifyToken:"",verifyReference:"",apis:{register:BCAS_API_BASE_URL+"api/acs/v1/register",sendOtp:COMMON_UTILS_ENDPOINT_KEY+"otp",pageInstanse:"ask-question-popup",verifyOtp:COMMON_UTILS_ENDPOINT_KEY+"otp-verify",bcasSendOtp:BCAS_API_BASE_URL+"api/acs/v2/send-otp",bcasVerifyOtp:BCAS_API_BASE_URL+"api/acs/v2/verify-otp",voiceOtp:BCAS_API_BASE_URL+"api/acs/voice"},storageSessionId:""};

')))}):d.click(function(e){e.preventDefault();var a=USER_DETAILS_INPUT_VALIDATORS.phoneValidation(t)&&USER_DETAILS_INPUT_VALIDATORS.nameValiadation(r)&&USER_DETAILS_INPUT_VALIDATORS.emailValidation(i)&&USER_DETAILS_INPUT_VALIDATORS.requiredValidation(o,"","Comment")&&USER_DETAILS_INPUT_VALIDATORS.cityValidation(n,"","City")&&USER_DETAILS_INPUT_VALIDATORS.requiredValidation(s,"","Grade");if(a&&MOBILE_OTP_VALIDATER.isPhoneNumberVerified){jQuery(".cb-error-msg, .cb-success-msg").remove(),jQuery(d).attr("disabled",!0).text("Posting..."),DEFAULT_USER_DETAILS.isUserAlreadyLoggedIn=!0,DEFAULT_USER_DETAILS.isMobileAlreadyVerified=!0,MOBILE_OTP_VALIDATER.verifyToken?DEFAULT_USER_DETAILS.authorization=MOBILE_OTP_VALIDATER.verifyToken:(userFromStorage=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),authToken=userFromStorage.authorization,DEFAULT_USER_DETAILS.authorization=authToken),DEFAULT_USER_DETAILS.verifyKey||(userFromStorage=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),DEFAULT_USER_DETAILS.verifyKey=userFromStorage.verifyKey),void 0===SESSION_ID&&(DEFAULT_USER_DETAILS.sessionId=generateRandomID()),void 0===SESSION_ID_SECONDARY&&(DEFAULT_USER_DETAILS.sessionIdSecondary=generateRandomID());var l={first_name:r.val(),mobile_number:t.val(),email_address:i.val(),category_type:"COMMENT",session_id:DEFAULT_USER_DETAILS.sessionId,session_id_secondary:DEFAULT_USER_DETAILS.sessionIdSecondary,grade:s.val(),city:n.val(),authorization:DEFAULT_USER_DETAILS.authorization,currentUrl:C_URL,Website_URL:C_URL,Platform:void 0!==navigator.isMobile?navigator.isMobile?"website_mobile":"website_desktop":"",Lead_Magnet_Type:"LEAVE_A_COMMENT_FORM",Device_Details:void 0!==navigator.detectDeviceAgent?navigator.detectDeviceAgent:"",Device_UserAgent:void 0!==navigator.userAgent?navigator.userAgent:""},m=author_submit_form=email_submit_form=captcha_submit_form=!1;u.find('button[name="submit"]').attr("disabled","disabled").val("Posting...").addClass("post-class"),u.find('textarea[name="comment"]').removeClass("cb-error");var _=u.find('textarea[name="comment"]').val().trim(),S=_.replace(/(<([^>]+)>)/gi,"_HTML_").trim(),A=S.split(" ").join("\n");A=A.replace(/^\s*(\[\s*url\s*=\s*)?(https?:\/\/)?(www\.|\S+?\.)(\S+?\.)?\S+\s*$\s*/gm,"_URL_").trim(),""===_||null==_?u.find('textarea[name="comment"]').after('Please enter comment.').addClass("cb-error"):""===S||-1!==S.indexOf("_HTML_")?u.find('textarea[name="comment"]').after('HTML tags are not allowed for comment.').addClass("cb-error"):""===A||-1!==A.indexOf("_URL_")?u.find('textarea[name="comment"]').after('Any external links or urls are not allowed.').addClass("cb-error"):m=!0;var E={},p=jQuery("#data-comment-form"),v=p.serializeArray();if(jQuery.each(v,function(e,a){E[a.name]=a.value,"_wp_unfiltered_html_comment"===a.name&&null!==a.value&&(c=!0)}),!1===c)if(u.find('input[name="author"]').removeClass("cb-error"),u.find('input[name="email"]').removeClass("cb-error"),0!==u.find('textarea[name="g-recaptcha-response"]').length){var I=u.find('textarea[name="g-recaptcha-response"]').val().trim();""===I||null==I?u.find(".g-recaptcha").append('Please check the captcha form.'):captcha_submit_form=!0}else captcha_submit_form=!0;else author_submit_form=!0,email_submit_form=!0,captcha_submit_form=!0;m&&captcha_submit_form?(MOBILE_OTP_VALIDATER.verifyToken?E.authorization=MOBILE_OTP_VALIDATER.verifyToken:(userFromStorage=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),authToken=userFromStorage.authorization,E.authorization=authToken),E.comment=S,E.author=r.val(),E.email=i.val(),E.mobileNumber=l.mobile_number,delete E.city,delete E.grade,E.ajax_comment_request=1,jQuery.post(BASE_URL+"wp-comments-post.php",E,function(e){if(u.find('button[name="submit"]').attr("disabled",!1).val("Post Comment").removeClass("post-class"),null!=e){var a=JSON.parse(e);"success"===a.status&&a.response?(c?addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"created Successfully"):(o.val(""),addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"created Successfully"),0!==u.find('textarea[name="g-recaptcha-response"]').length&&grecaptcha.reset(),jQuery(d).attr("disabled",!1).text("Post Comment"),jQuery("#cancel-comment-reply-link").click(),jQuery(".form-submit").after('Thanks! Your comment has been submitted successfully. It will take some time to appear on the page.')),r.attr("disabled",!1).parent().removeClass("hidden"),i.attr("disabled",!1).parent().removeClass("hidden"),s.attr("disabled",!1).parent().removeClass("hidden"),n.attr("disabled",!1).parent().removeClass("hidden"),c||jQuery.ajax({type:"POST",url:USER_DETAILS_CONFIG.apis.userCreateUpdateUrl,data:l,success:function(e){setStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE",JSON.stringify(DEFAULT_USER_DETAILS)),USER_DETAILS_CONFIG.isUserAlreadyExist=!0},error:function(e){console.log(e)}})):"invalid"===a.status&&a.response?(jQuery(d).text("Post Comment"),jQuery(".form-submit").after('Invalid Comment or User posted too many Comments')):"failed"===a.status&&a.response?(jQuery(d).text("Post Comment"),jQuery(".form-submit").after('Something went wrong, please refresh the page and try again')):(jQuery(d).attr("disabled",!1).text("Post Comment"),jQuery(".form-submit").after('Invalid Comment or User posted too many Comments'))}else jQuery(d).attr("disabled",!1).text("Post Comment"),jQuery(".form-submit").after('Something went wrong. Please try again after sometime.'),addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"creation Failed")})):u.find('button[name="submit"]').attr("disabled",!1).val("Post Comment").removeClass("post-class")}else USER_DETAILS_INPUT_VALIDATORS.phoneValidation(t),USER_DETAILS_INPUT_VALIDATORS.nameValiadation(r),USER_DETAILS_INPUT_VALIDATORS.requiredValidation(o,"","Comment "),USER_DETAILS_INPUT_VALIDATORS.cityValidation(n,"","City"),USER_DETAILS_INPUT_VALIDATORS.requiredValidation(s,"","Grade"),USER_DETAILS_INPUT_VALIDATORS.emailValidation(i),USER_DETAILS_INPUT_VALIDATORS.phoneValidation(t)&&!MOBILE_OTP_VALIDATER.isPhoneNumberVerified&&(a=!1,r.removeClass("input-valid").addClass("input-error"),r.siblings(".input-error-msg").remove(),t.removeClass("input-valid").addClass("input-error"),t.siblings(".input-error-msg").remove(),t.after('

Validate your Mobile Number

'))})),getInputAccordingSessionID(e,t,l,m,r,i,n,s),t.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.phoneValidation(this)}),o.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.requiredValidation(this,"","Comment ")}),r.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.nameValiadation(this)}),i.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.emailValidation(this)}),s.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.requiredValidation(this,"","Grade")}),n.on("input",function(){this.isValidInput=USER_DETAILS_INPUT_VALIDATORS.cityValidation,this.requiredName="City";var e=jQuery(this);USER_DETAILS_INPUT_VALIDATORS.cityValidation(e,"","City")}),n.on("change",function(){this.isValidInput=USER_DETAILS_INPUT_VALIDATORS.cityValidation,this.requiredName="City";var e=jQuery(this);USER_DETAILS_INPUT_VALIDATORS.cityValidation(e,"","City")})}}function addGAEvent(e,a){e?GA_FLAG&&ga("send","event","Post Comment Successful","Post Comment activity "+a+" By Existed User","URL: "+C_URL):GA_FLAG&&ga("send","event","Post Comment Successful","Post Comment activity "+a+" By New User","URL: "+C_URL)}function getInputAccordingSessionID(e,a,t,r,i,s,n,o){var d,l;if(null!==getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")&&(d=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),l=d.sessionId,sessionIDSec=d.sessionIdSecondary,void 0!==l&&"undefined"!=typeof sessionIDSec)){var m={session_id:l,session_id_secondary:sessionIDSec};jQuery.ajax({type:"POST",url:USER_DETAILS_CONFIG.apis.userChecBySessionIDUrl,data:m,success:function(e){e.success&&(a.val(e.data.mobile).attr("disabled",!0),t.addClass("hidden"),r.removeClass("hidden"),i.val(e.data.name).attr("disabled",!1).parent().removeClass("hidden"),s.val(e.data.email).attr("disabled",!1).parent().removeClass("hidden"),n.val(e.data.city).attr("disabled",!1).parent().removeClass("hidden"),o.val(e.data.grade).attr("disabled",!1).parent().removeClass("hidden"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=d.isMobileAlreadyVerified,USER_DETAILS_CONFIG.isUserAlreadyExist=!0,USER_DETAILS_CONFIG.userDetails=e.data)},error:function(e){console.log(e)}})}}var SESSION_ID,SESSION_ID_SECONDARY,DEFAULT_USER_DETAILS={author:"",email:"",mobile:"",isUserAlreadyLoggedIn:!1,isMobileAlreadyVerified:!1,sessionId:"",sessionIdSecondary:"",authorization:"",verifyKey:""},USER_DETAILS_CONFIG={isUserAlreadyExist:!1,apis:{userChecBySessionIDUrl:BASE_URL+"wp-json/spidy/v1/get_user_by_session_id_api/",userCheckUrl:BASE_URL+"wp-json/spidy/v1/user_check_api/?wp-json_allow",userCreateUpdateUrl:BASE_URL+"wp-json/spidy/v1/user_create_update_api/?wp-json_allow",city:{url:BCAP_API_BASE_URL+"api/geo_dimensions/india_state_city_list/?limit="+INDIA_STATE_CITY_LIST_LIMIT_VAL,method:"GET"}},userDetails:""},USER_DETAILS_INPUT_VALIDATORS={getParameterByName:function(e,a){a=a?"?"+a:window.location.search;var t=new RegExp("[?&]"+e.replace(/\[/g,"\\[").replace(/\]/g,"\\]")+"(?:=([^]*))?(?:[]|$)").exec(a);return t?t[1]?decodeURIComponent(t[1].replace(/\+/g," ")):"":null},requiredValidation:function(e,a,t){var r=jQuery(e),i=r.val(),s="";return r.siblings(".input-error-msg").remove(),i&&null!==i||(s=t+" is required."),s?(r.addClass("input-error").removeClass("input-valid"),r.after('

'+s+"

"),!1):(r.removeClass("input-error"),r.addClass("input-valid"),!0)},emailValidation:function(e,a){var t=jQuery(e),r=t.val(),i="",s=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,13}))$/;return t.siblings(".input-error-msg").remove(),r&&null!==r?r.match(s)||(i="Email-id is not valid."):i="Email-id is required.",i?(t.addClass("input-error").removeClass("input-valid"),t.after('

'+i+"

"),!1):(t.removeClass("input-error"),t.addClass("input-valid"),!0)},nameValiadation:function(e,a,t){var r=jQuery(e),i=r.val(),s=t||"Name",n="",o=/^[a-zA-Z][a-zA-Z\-\ \.]{2,}$/i;return r.siblings(".input-error-msg").remove(),n=i&&null!==i?i.length<=2?"Name should be minimum 3 characters.":i.match(o)?"":"Accepts alphabets only.":s+" is required.",n?(r.addClass("input-error").removeClass("input-valid"),r.after('

'+n+"

"),!1):(r.removeClass("input-error"),r.addClass("input-valid"),!0)},phoneValidation:function(e,a){var t=jQuery(e),r=t.val(),i="",s=/^\d{10}$/,n=/^\d{1,10}$/;if(t.siblings(".input-error-msg").remove(),r&&null!==r)if(r.match(n))r.match(s)||(i="Mobile No. should be 10 digits.");else{let e=t.val().replace(/[^0-9]+/g,"");t.val(e),i=t.val()?"Mobile No. should be 10 digits.":"Mobile No. is required."}else i="Mobile No. is required.";return i?(t.addClass("input-error").removeClass("input-valid"),t.after('

'+i+"

"),!1):(t.removeClass("input-error"),t.addClass("input-valid"),!0)},ajaxCall:function(e,a,t,r){jQuery.ajax({type:e,url:a,crossDomain:!0,data:t,headers:{"content-type":"application/x-www-form-urlencoded"},success:function(e){r&&r(e)},error:function(e){r&&r(e)}})},cities:[],cityAutoSuggestions:function(e){var a;USER_DETAILS_INPUT_VALIDATORS.ajaxCall(USER_DETAILS_CONFIG.apis.city.method,USER_DETAILS_CONFIG.apis.city.url,"",function(e){e.results.length&&(a=e.results,USER_DETAILS_INPUT_VALIDATORS.cities=e.results)});var t=jQuery("["+e+"]"),r=t.find("input");r.on("input",function(){0;var e=jQuery(this).val().toLowerCase(),i="";if(t.find("ul").remove(),e.length>=1){var s=jQuery.grep(a,function(a,t){return 0===a.city.toLowerCase().indexOf(e)});s.length&&(s.every(function(a,t){return i+='

  • '+a.city.toLowerCase().replace(e,""+e+"")+"
  • ",6!==t}),t.append("

      "+i+"

    "))}t.find("ul>li>a").on("click",function(e){e.stopPropagation(),r.val(jQuery(this).text()),t.find("ul").remove(),0,r[0].isValidInput(r)})}),jQuery("body").on("click",function(){t.find("ul").remove(),0})},cityValidation:function(e,a,t){if(USER_DETAILS_INPUT_VALIDATORS.requiredValidation(e,a,t)){if(!USER_DETAILS_INPUT_VALIDATORS.cities.length)return!0;if(USER_DETAILS_INPUT_VALIDATORS.cities.filter(function(a){return a.city.toLocaleLowerCase()==e.val()}).length)return e.siblings(".input-error-msg").remove(),e.removeClass("input-error"),e.addClass("input-valid"),!0;e.addClass("input-error").removeClass("input-valid"),e.after('

    Should be selected from the list

    ')}return!1}};(function(){if(jQuery("#data-comment-form").length>0){commentForm("COMMENT");var e=jQuery("[data-name-field]"),a=jQuery("[data-email-field]"),t=jQuery("[data-grade-fg]"),r=jQuery("[data-city-fg]");e.length>0&&a.length>0&&phoneNumberValidation("#data-comment-form",e,a,t,r,"COMMENT"),USER_DETAILS_INPUT_VALIDATORS.cityAutoSuggestions("data-city-auto-suggestions-comment")}})(),window.onbeforeunload=function(){null!==getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")&&clearLocalStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE"),null!==getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE_expiresIn")&&clearLocalStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE_expiresIn")};

    Ohm’s Law - Statement, Formula, Solved Examples, Verification, FAQs (2024)

    References

    Top Articles
    Latest Posts
    Article information

    Author: Ray Christiansen

    Last Updated:

    Views: 6633

    Rating: 4.9 / 5 (69 voted)

    Reviews: 92% of readers found this page helpful

    Author information

    Name: Ray Christiansen

    Birthday: 1998-05-04

    Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

    Phone: +337636892828

    Job: Lead Hospitality Designer

    Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

    Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.