a.a.yakovlev355047
a.a.yakovlev355047

Hello
My task is easy.
But i something doesnt understand: how change URL when submit ajax form? and how change checkbox when page on start?
For example on page have

<form>
<input name="param1"
           data-request="onSearch"
           data-request-update="list: '#list'"
           value="yes" type="checkbox"
           id="checkbox1"
    />
    <label for="checkbox1">Checkbox</label>
</form>

But this is POST and URL not edit. If GET - all work, untill i click button type=submit

localhost/?param=yes

Page reloaded but check box dont change. And if i click on checkbox - param1 always = yes

how to do right?

Last updated

mjauvin
mjauvin

Can you provide real code/markup you are using, that would make it much easier for us to help.

1-2 of 2