3
I confess that I don’t get a lot of Jquery and that’s why I’m in need of some help. I would like to update a product information, but without having to refresh the page. Example.:
When the user clicks the link Main Photo
Automatically change as image below:
The problem is only in Jquery and not in the BD change I’m making with PHP/Mysql.
The link code follows below:
$mostrar .= "<a href='?principal=s&foto=".$jmFotos->IDFotos."&key=".$keyProdutos."' class='btn btn-primary btn-xs'>Foto Principal</a>";
look about $.ajax(); in jquery, you will need a php page that will receive the data to register in the BD, and a function in ajax/jquery that sends the data to the php page
– Matheus Lopes Marques
Hello Matheus. I understand how it works, but I don’t get a lot of jquery. Would you have an example? Just the jquery part.
– user24136
Which class makes the button green and ticked?
– Sam
Sawn this question and the answers there? You have examples of how to do that.
– Sergio
Hello Sergio. I will take a look at the page informed.
– user24136
Hello Dvd, step to bootstrap btn-Success class.
– user24136