javascript - JS - ID - Rails 4 - Compare two ids -


i jquery select data class attribute data-id (which has class colapse-project) if data-id different pp class data-id.

i'm stucked here:

 if ($(pp).attr("data-id")!=$(data).attr("data-id").hasclass('colapse-project')){                  alert('different')             } 


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -