we have update our script inside webflow page if we run in out local machine than it is updateing but after publish on webflow it is not updating i removed all code from script and just put one alert(“hello world”) on onclick function but script was tacking old code dont know what is wrong can you guys please help us because this is very urgent this is the code if you guys needed any othe stuff then let me know i will provide it
<style>
/* .field {
border-radius: 20px;
border-width: 2px;
border-style: solid;
border-color: #FFD75D;
height: 37px;
padding-left: 40px;
width: 360px;
} */
.field:focus {
outline: none;
}
.icon {
/*position: absolute;
left: 3.5%;*/
color: #f5c441;
top: 20%;
font-size: 20px;
}
.field-div {
position: relative;
}
#btn {
height: 35px;
width: 100px;
position: absolute;
top: 1px;
right: 1px;
background-color:#FFD75D;
border: none;
border-radius: 20px;
color: white;
}
.yourdiv{
width: 390px;
display: flex;
position: relative;
flex-direction: row;
align-items: flex-end;
}
.btn:hover {
cursor: pointer;
}
::placeholder {
color: grey;
text-indent: 20px;
}
@media screen and (max-width: 480px) {
.field {
width: 210px;
padding: 10px;
}
}
</style>
<script>
function init() {
var input = document.getElementById("locationTextField");
var autocomplete = new google.maps.places.Autocomplete(input);
}
document.getElementById("btn").onclick = function (e) {
e.preventDefault();
var input = document.getElementById("locationTextField").value.substring(8).replace(" ", "-").replace(",", "");
if (input === "") {
window.alert("Please select an address");
} else {
window.alert("Webflow is working");
window.location.href =
"https://solar-app-229e7.web.app/application/default-" + input;
}
};
google.maps.event.addDomListener(window, "load", init);
</script>