Skip to content

Tag: javascript

Unexpected end of JSON input ajax

Here is what is going on. I have an error in my Ajax code that is causing the following error: Unexpected end of JSON input ajax Here is my code: I’m getting data from an array by doing the following: Then I’m parsing the JSON by doing the following: Based on the code, what could be causing the is…

How to get array id in ajax append?

i have an appended, there a selectbox with 2 textbox first the selectbox will selecting an item, after on change, it will set all the textbox with data based on selected. my select option calling data from database array $data. this is my ajax code this is my form lets pass about query data, because its worke…

Add tel: to phone number after calling it from database php

I’m using this to call phone number from database and hiding it with this : this is JavaScript i use to show and hide the phone number what I want is to add <a href=”tel:phoneNumber so the phone number will be clickable one the article page you can see the link here : https://www.lhawta.ma/clas…