How to apply the css on all ID starting with [duplicate]

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

On my website I have an AJAX search form. The HTML code displays this ID:

id=”edit-field-geolocation-proximity-center-geocoder–Bq5Bx8zXA1A”

I want to apply a style to it. My problem is that the code at the end of Bq5Bx8zXA1A changes with each search.

How to style all ID starting with :

id=”edit-field-geolocation-proximity-center-geocoder–”

UPDATE

Here is my current CSS code, it works on non-AJAX forms. But for those who have AJAX enabled, it doesn’t work because there is a random code added to the background of the ID :

#edit-field-geolocation-proximity-center-geocoder .form-item {
margin-top: 0rem;
}

enter image description here

‫أضف إجابة

تصفح
تصفح

مجهول يجيب