L
L
Laid2016-04-05 12:30:01
PHP
Laid, 2016-04-05 12:30:01

How can I check for input value?

Good afternoon.
I break my head. Please tell me how you can check for the value of the Value of the input.
There is a checkbox name, you need to check for the value of this checkbox ( value == 1 )

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2016-04-05
@ThunderCat

on live:

if($('#idofcheckbox').val() == 1){
  //do some code
}

or more details here

Z
Zhainar, 2016-04-05
@zhainar

if( $_POST[name] === value ) {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question