Display Table Cell Values to Input Text Fields

Let's say table rows are populated with information and you want the "input text" to be filled with those info. Here's how:

Sample HTML code for table:
<table id="viewOwnersInfo" class="table table-hover" border="1">
    <tbody>
        <tr>
            <th>Last Name</th>
            <th>First Name</th>
            <th>Middle Name</th>
            <th>Address</th>
            <th>Contact No.</th>
            <th>Tin</th>
        </tr>
        <tr>
            <td>Bonotan</td>
            <td>Melbert</td>
            <td>Recto</td>
            <td>P3A Ampayon, Butuan City</td>
            <td>09488588371</td>
            <td>TIN-2392399-23293</td>
        </tr>
        <tr>
            <td>Morales</td>
            <td>Edsel Matt</td>
            <td>Otacan</td>
            <td>Km. 3 Baan 3</td>
            <td>09078648310</td>
            <td>TIN-123123-1123123</td>
        </tr>
        <tr>
            <td>Rante</td>
            <td>Jorick</td>
            <td>Guinares</td>
            <td>Ampayon Butuan City</td>
            <td>09463829484</td>
            <td>TIN-3129812</td>
        </tr>
    </tbody>
</table>
<br/>
<!--Owner-->
<div class="form-group">
    <div class="col-md-12">
        <label for="owner">Owner</label>
        <input class="form-control" type="text" name="owner" id="owner" placeholder="Owner" data-toggle="modal" data-target="#owner_modal" />
    </div>
</div>
<!--Owner Address-->
<div class="form-group">
    <div class="col-md-6">
        <label for="owneraddress">Address</label>
        <input class="form-control" type="text" name="owneraddress" id="owneraddress" placeholder="Owner Address" />
    </div>
</div>
<!--Owner Contact Number-->
<div class="form-group">
    <div class="col-md-6">
        <label for="ownercontact">Contact Number</label>
        <input class="form-control" type="text" name="ownercontact" id="ownercontact" placeholder="Contact Number" />
    </div>
</div>
<!--TIN-->
<div class="form-group">
    <div class="col-md-6">
        <label for="tdno">TIN</label>
        <input class="form-control" type="text" name="tdno" id="tdno" placeholder="TIN" />
    </div>
</div>

Coke

coke
I can’t sleep. I have been avoiding coke for a couple of weeks but tonight I had a drink. Too much caffeine I guess. As I was on my bed, I can’t sleep. I tried closing my eyes several times but my mind doesn’t want to shut down.  Suddenly I remember my father who passed away. I don’t know maybe because my contract is expiring (work stuff) or simply because I missed him. After all it has been almost 8 years. Our family has been doing great thanks to my mother who always finds ways for us to survive. It’s been a great ride. I know my mother suffers a lot of pain not just by losing her husband but also from her children and that includes me. I remember her crying in front of me when I messed up my studies at MSU-IIT. And when I think about it now, I was such a bad son. Now, I realized that to be a good son, you need to be a good student also. She always tells me that I am good brother to my siblings. Of course, I had to. I am the eldest. Setting example is not my style. I was not born to become a leader, I knew it since the day I realized I like being alone more than having a companion. I don’t even talk that much with my mother when we were in sala while watching TV. But I do listen, I just choose not to respond.

So, Poetry!

They say poetry ignores grammar. So, POETRY! :D

How he read the word "crush" is tingly. 

Searching Feature Layer By its Attribute

Here's the screenshot 'coz I'm not good at explaining.
A pop up will show if the feature layer is found, it is also selected.

Here's the link for displaying Popups.

Here's the code below for reference:
Supposed your Vector Layer name is "layer_agao" and your SelectFeature Control is "selectControl".

My Ultimate Dream

So, I graduated. It's too late though but I've been thinking, what then? What's next? Well, I've been lucky to land a job after graduation. I'm proud of it because the project that I'm involved with helps the city of Butuan. My mother is happy, of course. It is such a wonderful feeling when you can treat your mother with your earned money. Yah, it's not enough! It will never be enough! :)

Currently, I'm a Cadet Programmer. By the way, we (with my fellow cadets) don't tap our keyboards synchronously. All I do is to sit and squeeze my mind, if not enough (most of the time), there's my trainer;Google. It is quite fun because of my working environment, I mean my coworkers. We laugh a lot, sing, sometimes dance and trash talks and get the job done! :D

I'm 25 and I remember being asked in my interview, who am I in the next 5 years? I don't really know! I'm a lazy person, I seldom plan ahead. I don't save money yet. I like taking one step at a time and that makes me slow with girls (hahaha). I have this thought in my mind that when I find "THE GIRL", I will marry her right after she says "yes". Crazy indeed and childish! :3

Enough with those things. Actually, my ultimate dream is not to become the world's most amazing person or a great programmer! I just want to visit Japan before getting married and attend Comiket, wrote a song (essay, poem maybe) for my first child and become a...

not a girl, but a DJ! hahaha

I really love music but I can't play any musical instruments! Haven't tried cymbals and triangle though. So maybe a DJ will do! I'm such a simple man. hahaha

Let Her Go


I love this song 'coz it has a sad melody and a meaningful lyrics. I prefer the cover above than the original. Here goes the lyrics:
Well you only need the light when it's burning low
Only miss the sun when it starts to snow
Only know you love her when you let her go
Only know you've been high when you're feeling low
Only hate the road when you’re missin' home
Only know you love her when you let her go
And you let her go
Staring at the bottom of your glass
Hoping one day you'll make a dream last
But dreams come slow and they go so fast
You see her when you close your eyes
Maybe one day you'll understand why
Everything you touch surely dies
But you only need the light when it's burning low
Only miss the sun when it starts to snow
Only know you love her when you let her go
Only know you've been high when you're feeling low
Only hate the road when you're missin' home
Only know you love her when you let her go
Staring at the ceiling in the dark
Same old empty feeling in your heart
'Cause love comes slow and it goes so fast
Well you see her when you fall asleep
But never to touch and never to keep
'Cause you loved her too much
And you dived too deep
Well you only need the light when it's burning low
Only miss the sun when it starts to snow
Only know you love her when you let her go
Only know you've been high when you're feeling low
Only hate the road when you're missin' home
Only know you love her when you let her go
And you let her go (oh, oh, ooh, oh no)
And you let her go (oh, oh, ooh, oh no)
Will you let her go?
'Cause you only need the light when it's burning low
Only miss the sun when it starts to snow
Only know you love her when you let her go
Only know you've been high when you're feeling low
Only hate the road when you're missin' home
Only know you love her when you let her go
'Cause you only need the light when it's burning low
Only miss the sun when it starts to snow
Only know you love her when you let her go
Only know you've been high when you're feeling low
Only hate the road when you're missin' home
Only know you love her when you let her go
And you let her go

BTW, it's very much ok to let go of someone 'coz in the first place, we don't own anything and we can't have everything. :3

Dear You!

Of course, you know who you are....

Just to let you know that I'm not one of those guy who doesn't care. It really bothers me when you're posting on your Facebook wall and it seems that I'm the one you're talking about (hahaha..taraw??!!). It's just sad, it keeps my head spin more. I am sorry for making you upset but please don't forget that I might feel the same also. We're both human, we just differ in perspective and preferences. I wanted to learn more about you to understand you more. As I said, I will try not to make you cry but it's impossible. 

You're a girl, I understand that you stay passive and I am sorry 'coz  I'm not that "aggressive" type of guy. I'm fine being alone but I know that I'll be happier when you're around. And I'm in no rush.  

And hey, I'm not vocal! I know that sometimes you need to spit those words out but if I do that, it won't be convincing. I prefer writing though. 

Here's my thought about you anyway:


I think that you don't really like me (I'm  pessimist).  I told you that I will miss you and I got nothing in return. I bet you won't even missed me and I'm fine with that. 

And please don't forget that we don't have a responsibility with each other. You can always say "no" to my invitations, you can always ignore my messages.

I JUST CAN'T FIGURE YOU OUT!!! This maybe because I've never been close to a woman whom I like for a long time.