title: Getting the classes of HTML input tags when form submitted using ColdFusion
body: <p>Let me start off with stating that what I'm trying to do might not be the best way to achieve my goal so any suggestions on a better way to do it would be appreciated as well!</p>
  
  <h2><strong>My Overall Goal:</strong></h2>
  
  <p>Using ColdFusion, validate (and sanitize, if needed) user input when a form is submitted. I'm planning on using jQuery to do the same so that the user can see if there's any issues with their input before submitting but I'm hesitant to rely solely on jQuery as the user might have JavaScript disabled.</p>
  
  <p><strong>My Current Strategy:</strong> When a user submits a form, have ColdFusion loop through all the inputs and grab each input's "class" attribute. Depending on its class (e.g., "text", "int", etc.) have the user's input validated accordingly.</p>
  
  <p><strong>My Question:</strong> Is there an "easy" way of grabbing HTML attributes using ColdFusion?</p>
  
  <p><strong>Notes:</strong></p>
  
  <ul>
  <li>I'm running ColdFusion 9</li>
  <li>While doing some searching, I've read several people talking about jTidy and jsoup but they seem like that might be overkill for what I'm trying to do?</li>
  </ul>
  
  <p>Again, I'm all ears for any alternate methods that will achieve what I'm trying to do as well!</p>