This seems so simple but...

This seems so simple but...

Sorry folks, total newbie to JS and jQuery but I'm learning! I'm stuck on getting this syntax right.

I want to use code like this to identify if my image is visible........

<img src="images/fin-1.jpg" id="hid1" alt="" title="01" style="display: none;">
<img src="images/fin-2.jpg" id="hid2" alt="" title="02" style="display: inline-block;">
<img src="images/fin-3.jpg" id="hid3" alt="" title="03" style="display: none;">

                    if $("#hid1").style= ("display: inline-block"); {
                shape = $("#hid1").title;
              }

....... and to get the value of the title attribute and assign it to var=shape.

I'm just not understanding the proper syntax and I can't find any examples even close to what I need. Please help!
---Frank