₹ 55950
Today MCX gold price in rupees per 10 grams.
(10 grams = 1 tola gold)
22 Carat Gold
₹ 55950(10 gram)
24 Carat Gold
₹ 61020(10 gram)
22 Carat & 24 Carat Gold Price in India
Gold Rate 22 Carat | Gold Rate 24 Carat | |
Yesterday | ₹ 56400 | ₹ 61510 |
Today | ₹ 55950 | ₹ 61020 |
Today Gold Price
The gold rate today in India is the price of gold per gram or per ounce on a particular day. Several factors, like international gold prices, exchange rates, and the demand and supply of gold in the local market, determine it. The gold rate in India is updated daily and can vary from city to city. These rates also depend on the purity of gold, with 24 carat being the purest form of gold and 22 Carat and 18 Carat being alloyed with other metals. The making charges of gold jewellery also contribute to the gold rate today in India. The higher the making charges, the higher the final price of the jewellery.Many Indians consider gold a safe investment option and buy gold coins or bars as a form of investment. The government of India regulates the import and export of gold to control the inflow of foreign exchange and protect the domestic gold industry.
Gold Price Today in Top Cities
City | Gold Rate Today 22k | Gold Rate Today 24k |
Ahmedabad | ₹ 56300 | ₹ 61410 |
Bangalore | ₹ 56300 | ₹ 61410 |
Chandigarh | ₹ 56400 | ₹ 61510 |
Chennai | ₹ 56650 | ₹ 61800 |
Delhi | ₹ 56400 | ₹ 61510 |
Ghaziabad | ₹ 56400 | ₹ 61510 |
Gurgaon | ₹ 56400 | ₹ 61510 |
Hyderabad | ₹ 56250 | ₹ 61360 |
Jaipur | ₹ 56400 | ₹ 61510 |
Kolkata | ₹ 56250 | ₹ 61360 |
Lucknow | ₹ 56400 | ₹ 61510 |
Mumbai | ₹ 56250 | ₹ 61360 |
Noida | ₹ 56400 | ₹ 61510 |
Pune | ₹ 56250 | ₹ 61360 |
Vijayawada | ₹ 56250 | ₹ 61360 |
24k Gold Price Today
Gram | Gold Rate Today 24k | Gold Rate Yesterday 24k |
1 Gram Gold Rate | ₹ 61020 | ₹ 61510 |
5 Gram Gold Rate | ₹ 305100 | ₹ 307550 |
8 Gram Gold Rate | ₹ 488160 | ₹ 492080 |
10 Gram Gold Rate | ₹ 610200 | ₹ 615100 |
22k Gold Price Today
Gram | Gold Rate Today 22k | Gold Rate Yesterday 22k |
1 Gram Gold Rate | ₹ 55950 | ₹ 56400 |
5 Gram Gold Rate | ₹ 279750 | ₹ 282000 |
8 Gram Gold Rate | ₹ 447600 | ₹ 451200 |
10 Gram Gold Rate | ₹ 559500 | ₹ 564000 |
Gold Rate In India For The Last 10 Days(10g)
Date | Gold Rate 22k | Gold Rate 24k |
May 25, 2023 | 55950 | 61020 |
May 24, 2023 | 56400 | 61510 |
May 23, 2023 | 56440 | 61560 |
May 22, 2023 | 56440 | 61560 |
May 21, 2023 | 56450 | 61570 |
May 20, 2023 | 56450 | 61570 |
May 19, 2023 | 55950 | 61020 |
May 18, 2023 | 56250 | 61350 |
May 17, 2023 | 56450 | 61570 |
May 16, 2023 | 56900 | 62060 |
Historical Gold Rate Trend in India
Gold Price Trend in Delhi for April
Gold Rates | 22 Carat | 24 Carat |
April 1st Rate | 55150 | 60150 |
April 3oth Rate | 56000 | 61080 |
Highest rate in April | ₹56800 on April 14 | ₹61950 on April 14 |
Lowest rate in April | ₹55150 on April 3 | ₹60150 on April 3 |
Over all performance | Rising | Rising |
% Change | +1.52 | +1.52 |
Gold Price Trend in Delhi for March
Gold Rates | 22 Carat | 24 Carat |
March 1st Rate | 51750 | 56440 |
March 3oth Rate | 54850 | 59820 |
Highest rate in March | ₹55450 on March 18 | ₹60470 on March 18 |
Lowest rate in April | ₹51050 on March 12 | ₹55680 on March 12 |
Over all performance | Rising | Rising |
% Change | +5.65 | +5.65 |
India is among one of the biggest buyers of gold globally, making a total purchase of 191.7 tonnes of gold worth Rs 85,010 crore in Q3 2022. The country has also seen steady growth in demand for gold, with rural areas making up two-thirds of India's gold market. In India, gold symbolises wealth and tradition and has a high cultural and economic significance in the lives of Indian families.
People in India usually buy gold as an investment or as jewellery for weddings and other auspicious occasions. However, the gold rate in India fluctuates due to global economic conditions, currency exchange rates, demand and supply, and geopolitical events. Because of this, the rate of gold also differs from city to city in India.
Difference Between 22 Carat and 24 Carat in India
The fundamental difference between 22 Carat and 24 Carat is the amount of gold they contain. 24 Carat gold has a 99.99% gold content. Considered the purest form of gold, people usually buy 24 Carat as an investment by purchasing gold bars and coins. On the other hand, 22 kt gold contains 22 parts of pure gold and two parts of other metals, like copper, silver, or zinc. Adding these other metals makes the gold more durable and suitable for use in jewellery. However, it is slightly duller coloured compared to 24 Carat gold. In addition, the higher gold content in 24 kt gold makes it more expensive than 22 kt gold.
How is the Hallmarked, KDM and 916 Gold Price Determined in India?
The purity, weight, and current market conditions impact the gold rate today in India. In addition, other factors like hallmarked gold, KDM gold, and 916 gold also determine the price of different types of gold.
- Hallmarked Gold:The price of hallmarked gold is determined based on its purity level, weight, and prevailing market rate. The Bureau of Indian Standards, or BIS, sets standards for various products in India, including gold. The hallmarked gold is priced by first measuring the purity of the gold by a BIS-certified assayer, who then assigns a hallmark certification, which includes the BIS logo, purity grade, and other relevant information.
- KDM Gold: KDM gold is an alloy of gold with cadmium, a cheaper alternative to other metals like silver or copper. To determine the price of KDM gold, the assayer measures the purity level of the gold, and then cadmium content is deducted from the total weight of the gold. Finally, the gold content and the current market rate determine the price of KDM gold.
- 916 Gold:It is an alloy of gold with other metals like copper or silver. 916 gold is also known as 22 Carat gold. To calculate the 916 gold rate, the purity of the gold is measured and the weight of other metals is deducted from the total weight of the gold. The remaining gold content is then added to the current market rate.
Theformula to calculate the final price of gold:
Final price = Price of Carat gold X (Weight in grams) + Making charges + GST at 3% on (Price of jewellery + making charges)
Factors that Affect Per-Gram Gold Rate in India
The per-gram gold rate today in India is affected by many factors. These include the following:
- International Market Conditions: The price of gold per gram in India can be affected by factors like global demand and supply, currency exchange rates, geopolitical events, and trade policies of other countries. This is due to the fact that India imports a considerable amount of gold from other nations.
- Domestic Demand and Supply:The demand and supply of gold in India also significantly determine its price. Gold is a cultural investment option during festivals and weddings, so the need for gold increases, leading to a price rise. However, if the domestic supply of gold is consistently high, then prices may remain stable or even decrease at times.
- Inflation: Inflation also impacts the per-gram gold rate in India. High inflation rates lead to a decrease in the value of the Indian rupee. It affects the general mindset of people who start investing in gold. Therefore the increase in demand for gold results in its high price.
- Interest Rates:The per-gram gold rate is also affected by the interest rates that the Reserve Bank of India (RBI) set. For example, when the interest rates are low, investors shift their investments to gold. It leads to increased demand for gold and, consequently, its prices.
- Taxes and Duties: To regulate its demand and supply, the government periodically changes the import duty on gold, thus affecting its price. The Goods and Services Tax(GST)market also affects the final gold rate.
- Strength of the Indian Rupee:The power of the Indian rupee significantly impacts the rate of gold in India. The cost of importing gold increases with the decline in the value of the Indian rupee, causing an overall increase in the price of gold. The value of the Indian rupee against other major currencies, like the US dollar, also affects the per-gram gold rate.
Invest in Gold In India: Benefits
Gold is a popular investment option in India. Some of the benefits of investing in gold in India include the following:
- Hedge Against Inflation:Gold's value tends to rise when inflation is high, hence considered a hedge against inflation. It means that by investing in gold, investors can protect themselves against the erosion of purchasing power caused by inflation.
- Heterogeneity: Investing in gold provides heterogeneity to your portfolio. Gold has little relation to the movement in values of other assets like stocks or bonds; therefore, by investing in gold, you can lower the overall risk of your investment portfolio.
- Safe Asset: Gold has always historically been used as a treasure and a medium of exchange, hence considered a safe asset. Investors move towards gold investment during economic and political uncertainty to protect their investments.
- Liquidity:You can quickly liquidate your investments in gold when you need cash, as it can be easily bought and sold in the market.
- Tax Benefits:Long-term capital gains on gold investments are taxed lower than short-term capital gains. Hence investing in gold offers tax benefits.
- Traditional Value:The cultural and emotional value of gold makes it a popular investment option. It is considered an auspicious metal bought during festivals and weddings in India.
- Potential for Capital Gains: Gold appreciates over the long term, even if the short-term price of gold may be dodgy.
Conclusion
Gold has cultural and economic significance in India, where people buy it for investment or auspicious occasions. The gold rate todayin India is a key point of interest for many individuals and investors as they track the fluctuating rates and make informed decisions. Factors like global economic conditions, currency exchange rates, demand and supply, and geopolitical events influence the gold rate, and it varies from city to city.
The gold rate todayin India is updated daily. In addition to external factors, the price of gold also depends on its type, which is determined by the metal's purity, weight, and current market conditions, with hallmarked gold, KDM gold, and 916 gold being some of the different types of gold available in the market. People in India consider gold an excellent investment, which shows that the demand for it will likely increase in the future.
Frequently Asked Questions (FAQs)
What is 22-carat pure gold?
22 Carat pure gold refers to gold that is composed of 91.67% gold and 8.33% other metals, such as copper or silver, to increase its hardness and durability. It is a popular choice for making jewellery.
How do gold rates in India change?
Gold rates in India change based on factors like global economic conditions, the strength of the US dollar, demand and supply in the domestic market, import duties, and taxes. The rates of gold can vary from city to city and can change multiple times a day based on the fluctuations in these factors.
How are 18k, 22k, and 24k Different from Each Other?
18k, 22k, and 24k are different gold alloys commonly used to make jewellery. The "k" stands for karat, a unit of measurement for the purity of gold. 24k gold is 99.9% gold and is the purest, softest and most malleable gold. 18k gold has 75% gold and 25% other metals, making it more durable than 24k gold. Lastly, 22k gold contains 91.67% gold and 8.33% other metals, making it harder and more durable than 18k gold.
How Much One Tola Gold?
One tola is a traditional unit of weight used in India, and it is equivalent to 11.66 grams.
How is Gold Brought into India?
Gold is brought into India through authorised importers and government-run agencies. The importers must pay customs duties and taxes. Gold can also be brought into India by individuals who travel abroad and carry gold up to a specified limit. Still, they are required to declare it at customs and pay the applicable duties and taxes.
'+ '
' + '
' + '
'; dev_Modal_agentModalBox = dev_Modal_agentModalBox + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName : 'N/A') + '' + '' + beatsresponse.SalesPersonCountryCode + '-' + beatsresponse.SalesPersonContact + '' + '
- ' + '
- Call Now ' + '
'; if(redirecturl){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '
' + 'Take to My Personal Profile ' + '
'; } dev_Modal_agentModalBox = dev_Modal_agentModalBox + '
' + '
'; return dev_Modal_agentModalBox;}else{ var dev_Modal_agentModalBox = '
' + '
' + '
' + '' + thankyoumsg + ''; if(redirecturl){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '
' + ''+ 'Take to My Personal Profile ' + '
'; } dev_Modal_agentModalBox = dev_Modal_agentModalBox + '
' + '
'; return dev_Modal_agentModalBox;}}function getglobalAgentPopupHtmlForDSE (beatsresponse,redirecturl,whatsappurl,thankyoumsg){if(beatsresponse.SalesPersonName != undefined && beatsresponse.SalesPersonContact != undefined && beatsresponse.SalesPersonName != "" && beatsresponse.SalesPersonContact != ""){var dev_Modal_agentModalBox = '
' + '
'; if(beatsresponse.SalesPersonProfilePic != undefined && beatsresponse.SalesPersonProfilePic != ""){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + ''; }else{ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName.charAt(0).toUpperCase() : 'N/A') + ''; }dev_Modal_agentModalBox = dev_Modal_agentModalBox + '
' + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName : 'N/A') + '' + '' + beatsresponse.SalesPersonCountryCode + '-' + beatsresponse.SalesPersonContact + '' + '
- ' + '
- Call Now ' + '
' + '
'; if(redirecturl){dev_Modal_agentModalBox = dev_Modal_agentModalBox + 'Take to My Personal Profile ';}dev_Modal_agentModalBox = dev_Modal_agentModalBox + "
";return dev_Modal_agentModalBox;}else{var dev_Modal_agentModalBox = '
' + '
'; dev_Modal_agentModalBox = dev_Modal_agentModalBox + '
' + thankyoumsg + '
'; if(redirecturl){dev_Modal_agentModalBox = dev_Modal_agentModalBox + 'Take to My Personal Profile ';}dev_Modal_agentModalBox = dev_Modal_agentModalBox + "
";return dev_Modal_agentModalBox;}}function afterglobalVerification(countryCode,mobile,beatsresponse,pageCategory,formboxid,formid,changeNumberformid,otpboxformid,modalpopupid,redirecturl,isdsepage , propAmcData, propAmcType , PriceHisoryPageData){ if(globaltimeinterval){ clearInterval(globaltimeinterval); } $("#"+otpboxformid).removeClass('active'); $("#"+formboxid).removeClass('active'); $(".overLayBox,body").addClass("active"); $(".homeFormBox h3").text('Contact Our Real Estate Experts'); $("#dev_ModalBox").addClass("active"); if(isdsepage == true){ $("#" + formid).addClass("active"); $("#" + otpboxformid).removeClass("active"); $("#" + changeNumberformid).removeClass("active"); $("#" + modalpopupid).removeClass("active"); } if(beatsresponse.SalesPersonName != undefined && beatsresponse.SalesPersonContact != undefined && beatsresponse.SalesPersonName != "" && beatsresponse.SalesPersonContact != ""){ var whatsapptext = "Hi " + beatsresponse.SalesPersonName + ",%0A%0A" + "I got connected to you on Squareyards.com.%0A%0ALook forward to your assistance " + "in my home search and ownership journey. Please get back to me so we can take " + "this ahead." + " Thanks."; let whatsappUrl = 'https://web.whatsapp.com/'if(isMobileBrowser()){whatsappUrl = 'https://api.whatsapp.com/'}let whatsappurl = whatsappUrl+"send?phone=" + beatsresponse.SalesPersonCountryCode + beatsresponse.SalesPersonContact + "&text=" + whatsapptext + "&source=&data="; var dev_Modal_agentModalBox = ""; if(isdsepage == true){ dev_Modal_agentModalBox = getglobalAgentPopupHtmlForDSE(beatsresponse,redirecturl,whatsappurl); }else{ dev_Modal_agentModalBox = getglobalAgentPopupHtml(beatsresponse,redirecturl,whatsappurl); } $("#" + modalpopupid).html(dev_Modal_agentModalBox); $("#"+formid).removeClass("active"); $('body').on('click','div.closeAgentModalPopup',function() { $('div.agentModalBox').removeClass('active') $('div.overLayBox,body').removeClass('active')$('#dev_ModalBox').html('');$('#dev_ModalBox').removeClass('active');$('.MapForm').removeClass('active') $("#"+formid).removeClass("active"); }); if(isdsepage == true){ $("#" + modalpopupid).addClass("active"); $(".gblPpup .gblOrflw, .ldBxClsBtn").off("click"); $(".gblPpup .gblOrflw, .ldBxClsBtn").on("click", function() {$(".gblPpup, body,div.overLayBox").removeClass("active");});if(formid.indexOf("_dsepopup") == -1){$("#"+formid).removeClass("active");} }else{ $("#"+formboxid).parent(".popupForm.active").removeClass('active'); } }else{ var thankyoumsg = "Thank You For Showing Interest, We'll Assign One Of Our Property Expert and Get Back to You Shortly."; var dev_Modal_agentModalBox = ""; if(isdsepage == true){ dev_Modal_agentModalBox = getglobalAgentPopupHtmlForDSE(beatsresponse,redirecturl,'',thankyoumsg); }else{ dev_Modal_agentModalBox = getglobalAgentPopupHtml(beatsresponse,redirecturl,'',thankyoumsg); } $("#" + modalpopupid).html(dev_Modal_agentModalBox); $("#"+formid).removeClass("active"); $('body').on('click','div.closeAgentModalPopup',function() { $('div.agentModalBox').removeClass('active') $('div.overLayBox,body').removeClass('active')$('#dev_ModalBox').html('');$('#dev_ModalBox').removeClass('active');$('.MapForm').removeClass('active'); $("#"+formid).removeClass("active"); }); if(isdsepage == true){ $("#" + modalpopupid).addClass("active"); if(formid.indexOf("_dsepopup") == -1){$("#"+formid).removeClass("active");}$(".gblPpup .gblOrflw, .ldBxClsBtn").off("click"); $(".gblPpup .gblOrflw, .ldBxClsBtn").on("click", function() {$(".gblPpup, body,div.overLayBox").removeClass("active");$("#"+formid).removeClass("active");}); }else{ $("#"+formboxid).parent(".popupForm.active").removeClass('active'); } } $('#' + formid)[0].reset();var city = $('#' + formid +' input#dev_inputelement').attr('placeholder')$('#ddlLocation').val(city); $('#' + otpboxformid)[0].reset();$("#" + changeNumberformid)[0].reset();$('body,.homePageLeadFormOverLay').removeClass("active");$('.gblPpup.pricehistoryUnlock').removeClass('active')if (isMobileBrowser()) {$('.position-sticky').removeClass('active');} $('#loaderBox').hide();}function jsonEncrypt(target){ string = unescape(encodeURIComponent(JSON.stringify(target).replace(/₹/g,''))); var newString = '', char, nextChar, combinedCharCode; for (var i = 0; i < string.length; i += 2) { char = string.charCodeAt(i); if ((i + 1) < string.length) { nextChar = string.charCodeAt(i + 1) - 31; combinedCharCode = char + "" + nextChar.toLocaleString('en', { minimumIntegerDigits: 2 }); newString += String.fromCharCode(parseInt(combinedCharCode, 10)); } else { newString += string.charAt(i); } } newString = btoa(unescape(encodeURIComponent(newString))); return { 'reqData': newString};}function globalsendOtp(formboxid,formid,changenoid,otpboxformid,isdsepage,baseurl,modalpopupid,pageCategory) { $('#loaderBox').show(); $(".homePageLeadFormOverLay .homeFormBox h3").text('Verify your Number'); $(".homePageLeadFormSingle .homeFormBox h3").text('Verify your Number'); let data = []; $("#" + otpboxformid + " .otpError").html(''); var buildingId = $("input[name='buildingId']").val(); $("#" + formid + " .sendotpError").html(''); data = $('#'+ formid).serializeArray(); if (buildingId != undefined) {data.push({'name' : 'builderId' , 'value' : buildingId }) } let name = $("#" + formid + " input[name='name']").val(); let email = $("#" + formid + " input[name='email']").val(); let location = $("#" + formid + " select[name='location']").val(); let propertyId = $('#' + formid).find('input[name="DotcomProjectId"]').val(); let unitId = $('#' + formid).find("input[name='unitId']").val(); let filteredData = {} data.filter(v => { filteredData[v.name] = v.value; }); $.ajax({ type:"POST", url: baseUrl +'lead/globalsendotp-v2', data:jsonEncrypt(filteredData), success: function(data){if(data.status){ let otpBox; $("#" + formboxid).removeClass("changenumber"); $("#" + otpboxformid + " #otpMobile_contactform").html('+'+filteredData.countryCode+'-'+filteredData.mobile); $("#" + formboxid).removeClass('active').addClass('active'); // $("#" + formid).css("display","none"); $("#" + formid).addClass("active"); if(isdsepage == true){ $("#" + formid).addClass("active"); $("#" + otpboxformid).addClass("active"); $("#" + changenoid).removeClass("active"); $("#" + modalpopupid).removeClass("active"); } global_run_clock(otpboxformid,15); $("#" + otpboxformid + " span.resend").hide(); setTimeout(function() { $("#" + otpboxformid + " span.resend").show(); }, (1*60*1000)); otpBox = $("#" + formboxid); building_id = data.builderId; if(data.otp){ var otp = data.otp.toString(); if(otp.length == 4){ otpBox.find("input[name=otp_contactform]").val(otp); } }else{ otpBox.find("input[name=otp_contactform]").val(''); } }else{ alert(data.message);// helperJS.alertBox('error',data.message); } $('#loaderBox').hide(); } });// $.post(baseUrl +'resale'+'/send-broker-detail-otp-v2',filteredData,function(data){// if(data.status){ // let otpBox; // $("#" + formboxid).removeClass("changenumber"); // $("#" + otpboxformid + " #otpMobile_contactform").html('+'+filteredData.countryCode+'-'+filteredData.mobile); // $("#" + formboxid).removeClass('active').addClass('active'); // // $("#" + formid).css("display","none"); // alert(formid);// $("#" + formid).addClass("active"); // if(isdsepage == true){ // $("#" + otpboxformid).addClass("active"); // $("#" + changenoid).removeClass("active"); // $("#" + modalpopupid).removeClass("active"); // } // global_run_clock(otpboxformid,15); // $("#" + otpboxformid + " span.resend").hide(); // setTimeout(function() { // $("#" + otpboxformid + " span.resend").show(); // }, (1*60*1000)); // otpBox = $("#" + formboxid);// building_id = data.builderId; // if(data.otp){ // var otp = data.otp.toString(); // if(otp.length == 4){ // otpBox.find("input[name=otp_contactform]").val(otp); // } // }else{ // otpBox.find("input[name=otp_contactform]").val(''); // } // }else{// alert(data.message);// // helperJS.alertBox('error',data.message); // } // $('#loaderBox').hide();// });} function getLmsCountryLocation() { var allcodes = []; $.each(countryLocationData, function(index, value) { if(allcodes.indexOf(value.code) == -1){ $(".ddlCountryCode").append( '
" ); allcodes.push(value.code); } }); $(".ddlLocation").not(".property-m").append( '
' ); if (countryLocationData[0].locations.length > 0) { countryLocationData[0].locations.forEach(function(element) { $(".ddlLocation").append( '
" ); }); }}function onChangeLmsCountryCode(countryCodeControl,locationId,formid){ let _code = $(countryCodeControl) .find("option:selected") .val(); if (countryLocationData !== undefined && countryLocationData) { $("#" + formid + " #"+locationId).empty(); let _selectedLoc = countryLocationData.filter(f => f.code == _code)[0]; if (_selectedLoc.locations.length > 0) { _selectedLoc.locations.forEach(function(element) { $("#"+ formid + " #" + locationId).append( '
" ); }); let _selcity= helperJS.getCookie('_selcity'); if(_selcity && parseInt(_selcity.id)>0) _selcity.name = _selcity.name.charAt(0).toUpperCase() + _selcity.name.slice(1); $("#" + formid + " #"+locationId).val(_selcity.name); } else { $("#" + formid + " #"+locationId).append( '
" ); } } } function initializeCityAutocompleteComboBox (formid,elementid,containerid){$.widget("custom.combobox", { _create: function() { this.wrapper = $( "" ) .addClass( "custom-combobox" ) .insertAfter( this.element ); this.element.hide(); this._createAutocomplete(); this._createShowAllButton(); var placeholderset = false; $("#" + formid + " #dev_drodownarrow").hover(function(){ if(placeholderset == false && $("#" + formid + " #" + elementid).val() != null && $("#" + formid + " #" + elementid).val() != ""){ $("#" + formid + " #dev_inputelement").attr("placeholder",$("#" + formid + " #" + elementid).val()); placeholderset = true; } if(placeholderset == true){ if($("#" + formid + " #dev_inputelement").val() == null || $("#" + formid + " #dev_inputelement").val() == ''){ $("#" + formid + " #dev_inputelement").val($("#" + formid + " #dev_inputelement").attr("placeholder")) }else{ $("#" + formid + " #dev_inputelement").val(''); placeholderset = false; } } }); /* $("#" + formid + " #dev_inputelement").focus(function(){ var isclosed = $("#" + formid + " #" + containerid).find("ul").css("display") == "none"; // if($("#"+ formid + " #dev_inputelement").val() == ''){ if(isclosed){ $("#" + formid + " #dev_inputelement").autocomplete( "search", "" ); }else{ $("#" + formid + " #" + containerid).find("ul").css("display","none"); } // } }); */ }, _createAutocomplete: function() { var selected = this.element.children( ":selected" ), value = selected.val() ? selected.text() : ""; this.input = $( "" ) .appendTo( this.wrapper ) .val( value ) .attr( "title", "" ) .addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left dev_inputelement" ) .autocomplete({ delay: 0, minLength: 0, source: $.proxy( this, "_source" ), appendTo: $("#" + formid + " #" + containerid), }) .tooltip({ classes: { "ui-tooltip": "ui-state-highlight" } }); this._on( this.input, { autocompleteselect: function( event, ui ) { ui.item.option.selected = true; this._trigger( "select", event, { item: ui.item.option }); $("#" + formid + " #dev_inputelement").attr("placeholder",$("#" + formid + " #" + elementid).val()); }, autocompletechange: "_removeIfInvalid" }); $("#" + formid + " #" + containerid).find("ul").addClass("drop-downcity"); }, _createShowAllButton: function() { var input = this.input, wasOpen = false; $( "" ) .attr( "tabIndex", -1 ) /* .attr( "title", "Show All Items" ) .tooltip() */ .appendTo( this.wrapper ) .button({ icons: { primary: "ui-icon-triangle-1-s" }, text: false }) .removeClass( "ui-corner-all" ) .addClass( "custom-combobox-toggle ui-corner-right" ) .on( "mousedown", function() { wasOpen = input.autocomplete( "widget" ).is( ":visible" ); }) .on( "click", function() { input.trigger( "focus" ); // Close if already visible if ( wasOpen ) { return; } // Pass empty string as value to search for, displaying all results input.autocomplete( "search", "" ); }); }, _source: function( request, response ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); var textarr = []; response( this.element.children( "option" ).map(function() { var text = $( this ).text(); if(textarr.indexOf(text) == -1){ textarr.push(text); if ( this.value && ( !request.term || matcher.test(text) ) ) return { label: text, value: text, option: this }; } }) ); }, _removeIfInvalid: function( event, ui ) { // Selected an item, nothing to do if ( ui.item ) { return; } // Search for a match (case-insensitive) var value = this.input.val(), valueLowerCase = value.toLowerCase(), valid = false; this.element.children( "option" ).each(function() { if ( $( this ).text().toLowerCase() === valueLowerCase ) { this.selected = valid = true; return false; } }); // Found a match, nothing to do if ( valid ) { return; } // Remove invalid value this.input .val( "" ) // .attr( "title", value + " didn't match any item" ) // .tooltip( "open" ); this.element.val( "" ); /* this._delay(function() { this.input.tooltip( "close" ).attr( "title", "" ); }, 2500 ); */ this.input.autocomplete( "instance" ).term = ""; }, _destroy: function() { this.wrapper.remove(); this.element.show(); } }); $("#" + formid + " #" + elementid).combobox(); } function initializeLazyLoad(){ var imageObserver = new IntersectionObserver((entries, imgObserver) => { entries.forEach((entry) => { if (entry.isIntersecting) { var lazyImage = entry.target; if(lazyImage.src.replace(baseUrl,'') != encodeURI(lazyImage.dataset.src ? lazyImage.dataset.src.replace(baseUrl,'') : '')){ lazyImage.src = lazyImage.dataset.src; } } }) }); var arr = document.querySelectorAll('img.lazy') arr.forEach((v) => { imageObserver.observe(v); }); } function homePageContactFormBtnClick(){$.post("https://www.squareyards.com/home/homepageleadformoverlay", function(data){$("#dev_contact_form_v1").html(data); $('.homePageLeadFormOverLay').addClass('active'); var selectedtab = $(".homePageLeadFormOverLay .homeFormBox .propTab.fixedTab").attr("tabval"); var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata);}); /* $.ajax({ async: true, dataType: "html", contentType: "application/json", success: function(data, textStatus) { $("#dev_contact_form_v1").html(data); $('.homePageLeadFormOverLay').addClass('active'); var selectedtab = $(".homePageLeadFormOverLay .homeFormBox .propTab.fixedTab").attr("tabval"); var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata); }, error:function(error){ console.log(error); }, type: "POST", url: "https://www.squareyards.com/home/homepageleadformoverlay" }); */ } function homePageContactFormBtnClickForSingle(){$.post("https://www.squareyards.com/home/homepageleadformoverlay", function(data){$("#dev_contact_form_v1").html(data);$("#dev_home_propertytabbox").remove();$('.homePageLeadFormOverLay').addClass("homePageLeadFormSingle");$('.homePageLeadFormOverLay').removeClass('homePageLeadFormOverLay'); var selectedtab = "newproject"; var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata);}); /* $.ajax({ async: true, dataType: "html", contentType: "application/json", success: function(data, textStatus) { $("#dev_contact_form_v1").html(data); $('.homePageLeadFormOverLay').addClass('active'); var selectedtab = $(".homePageLeadFormOverLay .homeFormBox .propTab.fixedTab").attr("tabval"); var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata); }, error:function(error){ console.log(error); }, type: "POST", url: "https://www.squareyards.com/home/homepageleadformoverlay" }); */ } function homeFormBoxCloseBtnClick(){ $('.homePageLeadFormOverLay').removeClass('active'); } function propertyTabClick(tabval){ var propertytabdata = [{"name":"Buy","tabval":"newproject","icon":"hti-icon1"},{"name":"Rent","tabval":"rental","icon":"hti-icon2"},{"name":"Home Loan","tabval":"homeloan","icon":"hti-icon4"},{"name":"Home Interior","tabval":"homeinterior","icon":"hti-icon5"}]; var selectedtabdata_arr = propertytabdata.filter(function(e){return e.tabval == tabval}); var othertabdata_arr = propertytabdata.filter(function(e){return e.tabval != tabval}); var propertytabboxhtml = ""; if(selectedtabdata_arr.length > 0){ var selectedtabdata = selectedtabdata_arr[0]; propertytabboxhtml = propertytabboxhtml + ' ' + selectedtabdata["name"] + ' '; for(var i=0;i
'; } $("#dev_home_propertytabbox").html(propertytabboxhtml); if(tabval == "rental"){ $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#domesticCampId").val(6532); $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#internationalCampId").val(6532); }else{ $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#domesticCampId").val(277); $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#internationalCampId").val(600); } var formdata = {"selectedtab":tabval}; opencontacthomeformv1(formdata); } function agentContactFormV1(id,userType,formdivid,formdata){if($("#" + formdivid + " .formBox").length <= 0){ $.post(baseUrl + "loadagentcontactform",formdata,function(data){ $("#" + formdivid).html(data); agentform.init(id,userType,formdivid); }); }else{ agentform.init(id,userType,formdivid); } } function opencontacthomeformv1(formdata){ $('#loaderBox').show(); $.post("https://www.squareyards.com/getcontactformbyselectedtab", formdata, function(data){ $("#dev_contactformhomev1").html(data); $("#dev_contactformhomev1 .formBox").css("padding","0"); setTimeout(()=>{ if(formdata.selectedtab == "homeloan" || formdata.selectedtab == "homeinterior"){ if(formdata.selectedtab == "homeloan"){ // agentContactForm("COMMON_LOAN","urbanMoney","dev_popupform_agent"); agentContactFormV1("COMMON_LOAN","urbanMoney","dev_popupform_agent",formdata); setTimeout(() => { $(".formBox #confirmOtp").addClass("Home_Lead_Loan") }, 1000); }else{ // agentContactForm(0,"interior","dev_popupform_agent"); agentContactFormV1(0,"interior","dev_popupform_agent",formdata); setTimeout(() => { $(".formBox #confirmOtp").addClass("Home_Lead_Interiors") }, 1000); } }else{ $(".homePageLeadFormOverLay .homeFormBox h3").text('Contact Our Real Estate Experts');$(".homePageLeadFormSingle .homeFormBox h3").text('Contact Our Real Estate Experts');$(".ldBxClsBtn,.ldBxH5").remove(); initializeContactForm_popup(); setTimeout(()=>{ if($("#dev_inputelement").val() == ''){ $("#dev_inputelement").val('Select City'); } }); if(formdata.selectedtab == "newproject"){ $("#confirmOtp_contactform").addClass("Home_Lead_Buy") } else{ $("#confirmOtp_contactform").addClass("Home_Lead_Rent") } if($("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value") != undefined && $("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value") != "" && $("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value") != null){ var countrycodeval = $("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value"); $("form#ClientInfoForm_dsepopup select#ddlCountryCode").val(countrycodeval); } } }) initializeLazyLoad(); }); /* $.ajax({ async: true, dataType: "html", contentType: "application/json", data:JSON.stringify(formdata), success: function(data, textStatus) { }, error:function(error){ console.log(error); }, type: "POST", url: "https://www.squareyards.com/getcontactformbyselectedtab" }); */ $('#loaderBox').hide(); }