Skip to content
Advertisement

jQuery toggle function disorts text

I have some functions to toggle 2 parts of an HTML if I click the ‘rejt’ button. Normally it looks like this: But after using the button to toggle it back again, it gets disorted like this: Please help me fix this. Code sample: Answer First of all, what’s with the font and id tags? Not sure what jQuery is

How can I make a checkbox readonly? not disabled?

I have a form where I have to post form values to my action class. In this form I have a checkbox that needs to be readonly. I tried setting disabled=”true” but that doesn’t work when posting to the action class. So please advice?? Answer You can easily do this by css. HTML : CSS : Demo

javascript site root

I have this site that I need to find the root folder / plus the actual folder its works out of. My problem here is that during development i have the folder with in my local server that in turn is with in its own folder: Then online I then have the development site within a folder, so it can

how to get Javascript variable value in C#

I have two Lat/long tables, 1000 rows each table. I wanted to calculate the distance between two latitude/longitude using Google Map API and store distance in DB. The code is working fine but the catch is how to return calculated distance from javascript. I tried hidden fields to store the distance since I have written the below code in page

Advertisement