I just want to ask a simple question. I am creating a validation form using PHP. And what I need to do is to get the value of my textbox and assign it to a variable. Because I need that variable for comparing. But this process is done without an action form like GET or POST. How can I create a simple jquery for this?
Here's my sample flow.
<?php
$data_qty = fn_product_qty($product_id);
$x = //should be the textbox qty
if($x != $data_qty){
//some code here....
}
?>
.....
<input type='text' name='qty' value='1' />