Question: I'm new to JS/jQuery so any help is appreciated!:

For each anchor that has the *property* attribute, I need to get the src of its child img and apply that value as the href of the parent anchor

So for example:

```
<a property="1">
    <img src="abc.jpg">
</a>

<a property="2">
    <img src="def.jpg">
</a>

<a property="3">
    <img src="ghi.jpg">
</a>

```

would become:

```
<a href="abc.jpg" property="1">
    <img src="abc.jpg">
</a>

<a href="def.jpg" property="2">
    <img src="def.jpg">
</a>

<a href="ghi.jpg" property="1">
    <img src="ghi.jpg">
</a>

```

Thank You!

Answer: 
In my case it was global handler attached to `window` with `e.preventDefault()` that was preventing `onChange`.

So if you come here with non-working `onChange` handler - you might want to check if there's any.
```
<input type="text" name="newDate" value={newDate} className="datepicker"
placeholder="Meeting Date" onChange={(e) => handleInputChange(e)} />

```

weird, try this.