Getting client ID in javascript
I am trying to fix someone else's code and I have lines like this throughout my javascript -

    var dataDiv = document.getElementById("ctl00_cpMain_tcMainTabs_tResBDetails_tcDetailTabs_tBDetail_bmrDetailDataDiv")

What is the preferred syntax?

FYI, this is a jQuery enabled web application.
Getting client ID in javascript
===

I am trying to fix someone else's code and I have lines like this throughout my javascript -

    var dataDiv = document.getElementById("ctl00_cpMain_tcMainTabs_tResBDetails_tcDetailTabs_tBDetail_bmrDetailDataDiv")

What is the preferred syntax?

FYI, this is a jQuery enabled web application.