troubleshooting Question

how do you write an if this or this then statement in Jquery

Avatar of smfmetro10
smfmetro10Flag for United States of America asked on
7 Comments1 Solution274 ViewsLast Modified:
Hi I am trying to write a if then statement with Jquery... to no avail..

I have a hidden input (named recipientId)  that gets a value based on an <a id>  

what I want is to show a  form if the value of recipientId is 6,5,4...

This is what I have so far..

Thanks for help!!!

$(document).ready(function() { 
 var v = $(this).attr("id");
	if 	($("#recipientId").val("6"), $("#recipientId").val("5"), $("#recipientId").val("4")) {

//show div
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros