简体   繁体   中英

how can i send the php value through function js

I am doing this But not its not taking value what i am doing wrong here. its returning me the error .why this happening how can we send the php value.why its not getting the value from the php and how we can access this through the function.

code What I am trying to do.
code is given below:

<td align="center" class="view_cart_middle1"><?php echo form_input(array('name' => $i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5' ,'autocomplete' => 'off','class' => 'form-control view-cart-qty','readonly' => 'readonly', 'onclick' => "get_aproved(". $items['rowid'] .",". $items['qty'] .")", 'onkeyup' => "checkcart(this.value)','id'=>'quantity')"); ?></td>

They didnt get the value which is from php.i ma newbe here so please help me related this

try this:

<td align="center" class="view_cart_middle1"><?php echo form_input(array('name' => $i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5' ,'autocomplete' => 'off','class' => 'form-control view-cart-qty','readonly' => 'readonly', 'onclick' => "get_aproved(". $items['rowid'] .",". $items['qty'] .")", 'onkeyup' => "checkcart(this.value)','id'=>'quantity')")); ?></td>

one ')' was missing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM